You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to add support for custom timezone.
My use case as an example:
I have a UI for monitoring a remote device.
Sometimes the user wants to see the events in the timezone of the device location, which is not his local timezone.
Thanks.
BTW, there is a typo in the source code:
getDayOfWeekNames return range(0, 6).map((month) => format(setDay(date, month), formatStr, { locale: this._dateFnsLocale, }) );
should rename 'month' to 'day'
The text was updated successfully, but these errors were encountered:
Thanks for the typo alert ) Should definitely check the source and the tests now.
About the custom timezone case. Do you use the result dates in a some filtering process? Maybe it is more useful to transform the result from the datepicker to the target timezone further in code chain?
Ex: User selects the date (they are shown in his local timezone) and then the actual filter receives the trasformed value. So a user in a GMT+2 zone selects 03-06-2021T:00:00:00Z+02:00 and in the filter goes a GMT-4 zone this is 02-06-2021T18:00:00Z-04:00
Or maybe you want something like in #6 but not for the UTC only but for the any Timezone?
Thanks for this helpful library!
It would be nice to add support for custom timezone.
My use case as an example:
I have a UI for monitoring a remote device.
Sometimes the user wants to see the events in the timezone of the device location, which is not his local timezone.
Thanks.
BTW, there is a typo in the source code:
getDayOfWeekNames
return range(0, 6).map((month) => format(setDay(date, month), formatStr, { locale: this._dateFnsLocale, }) );
should rename 'month' to 'day'
The text was updated successfully, but these errors were encountered: