Skip to content

[Feature Request] Add support for timezone zones #2427

@focux

Description

@focux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions