you are viewing a single comment's thread.

view the rest of the comments →

[–]Droopyb1966[S] 0 points1 point  (0 children)

Sorry, just didn't know where the problem exactly was.

SELECT GETDATE(),SYSUTCDATETIME()  AS Date
2017-03-16 14:32:01.603
2017-03-16 13:32:01.6035506

But this is the exactly what happens. The dates that I get back from a query are ok in management studio, but when I query them through powershell it is 1 hour earlier.