Skip to content

How to access the local time and/or use UTC time? #624

Closed Answered by wojtekmaj
Tungstic asked this question in Q&A
Discussion options

You must be logged in to vote

React-Date-Picker returns local, native JavaScript Date. It's likely not "one day off", it's rather "In Greenwich, it's still yesterday/already tomorrow at this time".

My personal advice would be to keep it as it is, because working with anything else than UTC will be the start, not the end of your timezones nightmare.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tungstic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants