Skip to content

Conversation

@toshywoshy
Copy link
Contributor

@toshywoshy toshywoshy commented Jul 29, 2024

Fixes #9819

  • add local user time zone
  • add offset from UTC to convert
  • convert event time to user time zone
  • add several examples to demo

This solves issue #9819 and provides a way to display user local time for the program for start_time and end_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

  • London : +0100
  • Rio de Janero : -0300
  • Denver : -0600

- 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]>
@toshywoshy toshywoshy requested review from a team as code owners July 29, 2024 14:42
@netlify
Copy link

netlify bot commented Jul 29, 2024

Deploy Preview for devopsdays-web ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6d65933
🔍 Latest deploy log https://app.netlify.com/sites/devopsdays-web/deploys/66e814e7b4cc4c0008a01aef
😎 Deploy Preview https://deploy-preview-14405--devopsdays-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mattstratton
Copy link
Member

An event needs to add timeoffset: "+0200" to indicate the offset of the timezone against UTC.

What happens with events that do not have the offset?

@toshywoshy
Copy link
Contributor Author

toshywoshy commented Jul 30, 2024

Program for devopsdays organiser-summit 2024
If Open Space is new to you, you may be interested in more details about Open Space. Schedule is subject to change and more details will be added periodically Color Keys: Talk Ignite Open Space
Program for devopsdays Denver 2024
Program for for devopsdays Rio 2024

@phrawzty
Copy link
Collaborator

phrawzty commented Aug 4, 2024

What happens if there's a summer/winter time shift during an event?

@toshywoshy
Copy link
Contributor Author

If you use timezone it will display the summer/winter time correctly, as the offset gets calculated
If you use offset, then it will be in summer of winter time based upon the entry and the change will not be automatic

@mattstratton
Copy link
Member

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.

@mattstratton
Copy link
Member

There's a merge conflict that needs resolution

I think i fixed that :)

Matty Stratton and others added 2 commits September 13, 2024 15:51
@mattstratton mattstratton merged commit 907ad39 into devopsdays:main Sep 25, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for time zones for program, events, etc

4 participants