-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
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 thetimezone
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
.