battletoad
Expert Member
- Joined
- Mar 10, 2009
- Messages
- 1,461
- Reaction score
- 52
I'm running Fedora 31, and have MSSQL installed.
I've a weird issue where it seems that GETDATE() and GETUTCDATE() returns what looks to be a cached value, whereas SYSDATETIMEOFFSET() returns the proper date:
I can't seem to google my way thru this one. Has anyone come across something like this?
I've a weird issue where it seems that GETDATE() and GETUTCDATE() returns what looks to be a cached value, whereas SYSDATETIMEOFFSET() returns the proper date:
SQL:
1> select SYSDATETIMEOFFSET() as sysdate, GETUTCDATE() as utcdate
2> go
sysdate utcdate
--------------------------------------------- -----------------------
2020-06-28 16:36:48.3827305 +02:00 2020-06-27 20:35:46.440
(1 rows affected)
I can't seem to google my way thru this one. Has anyone come across something like this?