Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

different Time between tables DB and POS retail

Posted on by 2,016

greeting everyone 

i'm really confused from time in POS retail tables
for example when i checked on field CreatedDateTime in table it's not match with real time for transaction
but POS make it that match as real time
is there any hidden calculate for that?

here example for issue which  i'm faced

i have time transaction show me in POS 3:09:46 PM

but in field CreatedDateTime of that transaction table 12:09:46 PM

and here pic explain my example

POS TIME

time-pos.png

DATABASE TIME

time-db.JPG

  • Suggested answer
    Arshad Ahmad Profile Picture
    Arshad Ahmad 100 on at
    RE: different Time between tables DB and POS retail

    Hi

    Time difference is due to different time zones used by SQL Database and AX Client.

    As SQL database is using UTC and Ax client uses the current timezone of the client.

  • WillWU Profile Picture
    WillWU 22,350 on at
    RE: different Time between tables DB and POS retail

    Hi Mohammed,

    AX utilizes the utcDateTime data type to store date time information in the database using the Greenwich Mean Time definition of time.

    Whenever displayed on forms and bound to table fields, the data is converted to the user's preferred timezone.

    You can use DateTimeUtil::getSystemDateTime() method. This returns the current system dateTime as a type of utcDateTime, and there is no timezone offset applied to the data.

    Hope this helps.

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: different Time between tables DB and POS retail

    any idea about that?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans