fengyuanchen/pickerjs

Time Zone support

Opened this issue · 0 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report 
[X] Feature request
[ ] Documentation issue or request

Current behavior

The picker always uses the local date and time

Expected behavior

It should be possible to specify an optional time zone to use (like UTC)

What is the motivation / use case for changing the behavior?

Sometimes, it is necessary to pick dates and times in a different time zone from the current one

Environment


Picker.js version: 1.2.1


Browser:
- [X] Chrome (desktop) version 74.0.3729.131
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [X] Firefox version 66.0.5 (64-bit)
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

Others: