preloader-matrix

Alfasith

System date is different current zone date in AX

Hi,

static void AlfasithDateCompOfTodayWithServerTime(Args _args)
{
    utcDateTime startdate = DateTimeUtil::getSystemDateTime();
    print startdate;
    print DateTimeUtil::applyTimeZoneOffset(StartDate, DateTimeUtil::getUserPreferredTimeZone());
    pause;
}

Note: Same print statement whereas different value has been printed.
Regards,
Share on email
Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

Your email address will not be published.