Replies: 6 comments 3 replies
-
@Eric24 thanks for your suggestion! This should go in the next major release. Do you think a |
Beta Was this translation helpful? Give feedback.
-
Yes, By default, the component would work as it does now (using the browser's timezone), but if defined, it just uses the prop value to explicitly set the timezone of the passed-in date value. |
Beta Was this translation helpful? Give feedback.
-
hey guys i badly need this.. is there any update for this ? . or do you have part-time of solution how to fix it ? |
Beta Was this translation helpful? Give feedback.
-
Any update on this? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this feature? Is this something that we can help with a Pull Request? |
Beta Was this translation helpful? Give feedback.
-
@mauriciosoares it would be nice to know in details how it should work as this issue is rather old. Would you mind to open a feature request? https://github.com/gpbl/react-day-picker/issues/new/choose |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
There does not appear to be a way to specify the timezone reference used by the component (i.e. it uses only the browser's timezone). This is not always correct, as there are times when an application or even a specific date field needs to be displayed in a specific timezone.
Describe the solution you'd like
A way to override the default timezone with a specific timezone.
Describe alternatives you've considered
Our current solution is to manipulate the input value, adding an offset value to make the component's default timezone match that of the desired timezone, and then do the same on the way out. It's definitely a hack.
Beta Was this translation helpful? Give feedback.
All reactions