Skip to content

Feature request: TimeZone support #284

@rdewolff

Description

@rdewolff

Describe the feature you'd like
Add an option to set the timezone of the calendar.

Options

Option 1
The simple option would be to offset our moment dates.
Something like this could work when creating new moment var:

const m = moment()
m.utcOffset(+120) // set manually an offset to the desired timezone << make this a global option

Pro: easy to implement
Con: not the cleanest

Option 2
We could use the moment-timezone library.

Example:

  var moment = require('moment-timezone')
  moment.tz.setDefault('Europe/Zurich')

Pro: clean
Con: additional lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureenhancements or new features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions