I'm considering migrating my project using moment into date-fns which is known as simple, functional etc. But after I played with it a while, I noticed they don't support timezone yet. They have introduced locale and timezone option in format and other functionality in alpha 2.0.0 lately but the locale option is just a language support and the timezone option in those functions just shows/adds the GMT sign(ex. 2018.08.29 GMT+9). So I was wondering if I'm just missing it although they already support it or they really haven't supported it yet.
There is date-fns-timezone which works with date-fns v1, and date-fns-tz for date-fns v2.
See the official timezone documentation from date-fns, that points to date-fns-tz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With