Replies: 3 comments 11 replies
-
That's probably due to the time zone of your database. Try to post the output of running
You can set it with the connection options like this:
|
Beta Was this translation helpful? Give feedback.
-
Thank you, I did as advised:
And also have set the correct time zone in my db setting:
There is still the two hour difference in between. |
Beta Was this translation helpful? Give feedback.
-
ok, got it. I do need to strip the "Z" otherwise the browser ignores the date. |
Beta Was this translation helpful? Give feedback.
-
This is driving me nuts. I'm trying to set a date as timestamp coming from an input form:
I'm getting the date right from the DB (type timestamp w/o time zone):
Then I'm binding it to my input value (svelte code here, but you'll get how it works):
So nothing spectacular here. Now setting this date via
sql
:It will for some reason add a time zone calculation and because I'm not CET the timestamp is off by two hours.
Beta Was this translation helpful? Give feedback.
All reactions