Ahh it says something like ``` {"hint":null,"detai...
# help
y
Ahh it says something like
Copy code
{
  "hint": null,
  "details": null,
  "code": "22023",
  "message": "time zone \"gmt+0800\" not recognized"
}
e
Can you try new Date().toISOString() @User ?
y
Oh wow that seemed to work
Thanks!
So in general i should convert it to ISO?
s
new Date() gives a 'human friendly' verbose date. new Date().toISOString() gives a timestamp for the local timezone (i.e. the timezone of the computer/server it's running on) For example
y
Ahh i see nice thanks all
Generally if i want to store datetime in database is there a best practice?
Like so it works cross region
s
One would be to use timestamptz instead of timestamp: https://stackoverflow.com/a/22925669
y
I see. I'll look and keep it in mind. Thanks!