DateTimeUtil::utcNow. According to the MSDN: "This method is run on the server, so that the time that is returned is the system time of the server"
However, If I create a method with this code:
private void TimeTest() { str MyDate; ; MyDate= DateTimeUtil::toStr(DateTimeUtil::utcNow()); Box::info(MyDate); }
It returns the time from another TImezone. I've checked my user's timezone in AX and also the AOS Server timezone, and both have London timezone. When server time is 11:00, it returns 10:00
Any ideas on what can be causing this behaviour?
*This post is locked for comments