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

Set default timezone #259

Open
NwosaEmeka opened this issue Dec 4, 2023 · 2 comments
Open

Set default timezone #259

NwosaEmeka opened this issue Dec 4, 2023 · 2 comments

Comments

@NwosaEmeka
Copy link

NwosaEmeka commented Dec 4, 2023

Is there a way to set global default timezone using date-fns regardless of the device timezone? Using moment, I can do something like this moment.tz.setDefault('America/New_York')

@ningji
Copy link

ningji commented Dec 7, 2023

ha, i have the same question here

@jounii
Copy link

jounii commented Jun 12, 2024

It is always the local timezone. With NodeJS you set the TZ environment variable before starting the node.

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

3 participants