You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently having the problem, that values of type datetime2 are returned as UTC, but the actual value has an offset of 1 hour (our timezone is Europe/Vienna (i.e. +1h)).
The value in the database is 2017-09-12T10:33:00.190 in timezone +1 (i.e. UTC time would be 2017-09-12T09:33:00.190.
However, tedious actually returns 2017-09-12T10:33:00.190Z which is 2017-09-12T11:33:00.190 in local time and that's wrong.
Either I'm wrong and there is some misunderstanding, or there is a problem in the driver.
Was having the same issue. Seems to be fixed by setting useUTC option.
options.useUTC
A boolean determining whether to pass time values in UTC or local time. (default: true).
Activity
sharpart555 commentedon Jan 23, 2018
I have same problem too.
I 'm using MSSQL 2012 and node-mssql 4.1.0
joshstevens19 commentedon Apr 16, 2018
is this still a ongoing issue? i can take a look if so..
leeahoward commentedon Jun 14, 2018
Was having the same issue. Seems to be fixed by setting useUTC option.
options.useUTC
A boolean determining whether to pass time values in UTC or local time. (default: true).
Suraiya-Hameed commentedon Jul 19, 2018
@mnboos @sharpart555 Setting
useUTC: falseas mentioned by @leeahoward should do the trick. Feel free to reopen the issue if it didn't work.