Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

SQL server is 5 hour ahead of AOS server

Posted on by 2,427

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

  • Satish Panwar Profile Picture
    Satish Panwar 14,637 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,427 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,637 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,146 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,427 on at
    RE: SQL server is 5 hour ahead of AOS server

    I checked it is in PST.

  • nmaenpaa Profile Picture
    nmaenpaa 101,146 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).

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,632 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,528 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans