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: TimeZone support #284

Open
rdewolff opened this issue Nov 7, 2022 · 2 comments
Open

Feature request: TimeZone support #284

rdewolff opened this issue Nov 7, 2022 · 2 comments
Labels
type: feature enhancements or new features

Comments

@rdewolff
Copy link

rdewolff commented Nov 7, 2022

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

@pdpino pdpino added the type: feature enhancements or new features label Nov 7, 2022
@pdpino
Copy link
Collaborator

pdpino commented Nov 7, 2022

Would you need to handle events in different timezones? or just one global timezone

e.g. Event 1 in tzA, Event 2 in tzB, calendar displayed in tzC. Both events show "shifted" w/r to their hours, but we know they are from a different timezone.

@rdewolff
Copy link
Author

One global timezone support would be enough IMHO and should cover most use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

2 participants