You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently, we can specify the timezone of our database using the
timezone
property in the config object, however, you can only specify a value amongZ
,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 theAmerica/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 fromAmerica/Vancouver
toUTC
.The text was updated successfully, but these errors were encountered: