Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SQL server is 5 hour ahead of AOS server

(0) ShareShare
ReportReport
Posted on by 2,474

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
    14,667 Moderator 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
    2,474 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
    14,667 Moderator 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
    101,158 Moderator 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
    2,474 on at
    RE: SQL server is 5 hour ahead of AOS server

    I checked it is in PST.

  • nmaenpaa Profile Picture
    101,158 Moderator 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
Zain Mehmood Profile Picture

Zain Mehmood 6 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans