Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

SQL server is 5 hour ahead of AOS server

Posted on by 2,432

Whenever a record is created in AX, the createddatetime field in AX is showing 5 hours less than SQL createddatetime field for the same Table and both are in the same timezone.

Thanks in advance,

Raziq

*This post is locked for comments

  • Satish Panwar Profile Picture
    Satish Panwar 14,645 on at
    RE: SQL server is 5 hour ahead of AOS server

    Solution should be multiple AOS rather than customization in this area.

  • Suggested answer
    Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: SQL server is 5 hour ahead of AOS server

    This is what I was looking for

    community.dynamics.com/.../72798

  • Satish Panwar Profile Picture
    Satish Panwar 14,645 on at
    RE: SQL server is 5 hour ahead of AOS server

    Yes, they can both be is PST but database doesn't store PST timezone. Database will store utc time, when you see that time in form, it adjust the time based on your timezone (PST) and that's what you see on screen.

    Google what is utc time and difference between PST timezone and that will help.

    Given AX works across the world, utc is the basis of storing date/times, you can even see different dates but all good when displayed in AX.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: SQL server is 5 hour ahead of AOS server

    What is in PST? Do you still have some open questions or problems?

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,432 on at
    RE: SQL server is 5 hour ahead of AOS server

    I checked it is in PST.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: SQL server is 5 hour ahead of AOS server

    The actual value in the database is always stored in UTC time. But what you see in AX forms and table browser is adjusted to your user's time zone. Not the AOS server timezone. So the same database value is shown differently to users across different timezones.

    Check "Preferred time zone" setting in user options -> General -> Miscellaneous. And also the time zone of the workstation of the user (where AX client is opened).

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans