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

[Feature Request] Add support for timezone zones #2427

Open
focux opened this issue Oct 22, 2020 · 0 comments
Open

[Feature Request] Add support for timezone zones #2427

focux opened this issue Oct 22, 2020 · 0 comments

Comments

@focux
Copy link

focux commented Oct 22, 2020

Currently, we can specify the timezone of our database using the timezone property in the config object, however, you can only specify a value among Z, local or timezone offset, e.g. -07:00. This works most of the time but what If the dates on my database are saved using the America/Vancouver timezone, I can't rely on using an offset because in this case, if we do that, then we won't be able to take into account the Daylight Saving.

Some of the ways in which we can implement this are:

  • Implement a feature that allows the users to specify a timezone zone like e.g. America/Vancouver through the timezone config key.

  • Let the users specify a custom date parser function.

PD. I know that is a good practice to store all the dates using UTC timezone but in this case, I'm working on a legacy project and it's not possible to change all the dates from America/Vancouver to UTC.

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

No branches or pull requests

1 participant