MySQL Forums
Forum List  »  Connector/Node.js

Re: Dates being returned in the wrong timezone
Posted by: Rui Quelhas
Date: November 26, 2020 03:48AM

Sorry, I overlooked the first message. I guess you are running the server with +01:00.

that won't work, because the value sent by the server is used to create a JavaScript Date instance like

new Date('<value_from_server>')

In this case, JavaScript expects that value to be in UTC.

Feel free to open a feature request though.


Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.