-
Notifications
You must be signed in to change notification settings - Fork 700
[SITE] display time in local user time zone #14405
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
Conversation
- add local user time zone - add offset from UTC to convert - convert event time to user time zone - add several examples to demo Signed-off-by: Toshaan Bharvani <[email protected]>
✅ Deploy Preview for devopsdays-web ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Toshaan Bharvani <[email protected]>
What happens with events that do not have the offset? |
|
|
What happens if there's a summer/winter time shift during an event? |
|
If you use |
|
This seems good! There's a merge conflict that needs resolution @toshywoshy and then I'll merge it We do need to update the REFERENCE.md with the new fields too. |
I think i fixed that :) |
Signed-off-by: Matty Stratton <[email protected]>
Signed-off-by: Toshaan Bharvani <[email protected]>
Fixes #9819
This solves issue #9819 and provides a way to display user local time for the program for
start_timeandend_time.It uses the users browser defined time zone, and provide the timezone name and the time based.
An event needs to add
timeoffset: "+0200"to indicate the offset of the timezone against UTC.Please note that this value needs to be quoted as a string.
Here are some examples, which have also added into this commit