See:
https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/timezones-overview?view=azuresql
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I execute GetDate(), the value is ahead by about 4 hours. I would have thought this would be a time zone setting via Azure, but it seems to be set correctly (US/East). Any thoughts on why this value is incorrect and how it can be changed?
See this article: Getdate() in sql-server 2019 giving wrong date.
Can try using SYSDATETIME, which queries the OS clock, instead of GetDate(), which queries the database timestamp.
Please upvote or accept this thread as answered if it's helpful, thanks!