React-datepicker: utcOffset property no longer exists

Created on 25 Feb 2019  路  7Comments  路  Source: Hacker0x01/react-datepicker

It seems that after this library was refactored to use date-fns instead of moment.js, the property utcOffset referred in the documentation here no longer exists. What is the proper way to set timezone offset for this component now?

Thanks!

wontfix

Most helpful comment

Having this problem as well. I have to double convert values by hand. This issue is here since around March, any info on updates? Thank you.

All 7 comments

would also like to know this as well!

AFAIK date-fns does not have the time zone / offset support that moment.js does.

This is still a huge problem otherwise the dates are offset by a day depending on timezones

Having this problem as well. I have to double convert values by hand. This issue is here since around March, any info on updates? Thank you.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

this is still an issue afaik?

What is the solution to this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoodsy picture hoodsy  路  3Comments

jjjss94 picture jjjss94  路  3Comments

carmouche picture carmouche  路  3Comments

dhruvparmar372 picture dhruvparmar372  路  3Comments

tamitutor picture tamitutor  路  3Comments