Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date-fns-tz does not consider Daylight Saving Time in my country #238

Open
Mohamed-Mayallo opened this issue May 11, 2023 · 1 comment
Open

Comments

@Mohamed-Mayallo
Copy link

My country (Egypt) has restored Daylight Saving Time after a long pause. My app now is not working properly like before because of the timezone shifting.

The timezone was +02:00 but now it is actually +03:00, however, date-fns-tz is still considering it +02:00.

@kareemotafy
Copy link

kareemotafy commented Jun 21, 2023

Hello, I recommend using Luxon as it works correctly!
https://www.npmjs.com/package/luxon

import {DateTime} from "luxon"

console.log(DateTime.utc().toISO())

console.log(DateTime.now().setZone('Africa/Cairo').toISO())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants