Skip to content

Commit

Permalink
Attempt to fix calendar timezone
Browse files Browse the repository at this point in the history
Apparently the `<script/>` block needs to be on the same
link with the `<iframe/>` so that the timezone shown
to readers will be their own.
  • Loading branch information
joshmoore committed Jan 15, 2024
1 parent 5c1f770 commit ef55682
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions community/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ much more.</font></p>
<p><font size="4">Please see the NGFF community calendar for exact
timings:</font></p>

<iframe id="calendariframe" src="https://calendar.google.com/calendar/embed?src=14c96687c3814f289f92de53b49bdfa7e5161d458ed1ab02d6a6c8a994522e10%40group.calendar.google.com&ctz=Europe%2FBerlin" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
<script>document.getElementById("calendariframe").src = document.getElementById("calendariframe").src.replace("ctz=local", "ctz=" + Intl.DateTimeFormat().resolvedOptions().timeZone)</script>
<iframe id="calendariframe" src="https://calendar.google.com/calendar/embed?src=14c96687c3814f289f92de53b49bdfa7e5161d458ed1ab02d6a6c8a994522e10%40group.calendar.google.com&ctz=Europe%2FBerlin" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe> <script>document.getElementById("calendariframe").src = document.getElementById("calendariframe").src.replace("ctz=local", "ctz=" + Intl.DateTimeFormat().resolvedOptions().timeZone)</script>

<font size="4">Download the <a href="https://calendar.google.com/calendar/ical/14c96687c3814f289f92de53b49bdfa7e5161d458ed1ab02d6a6c8a994522e10%40group.calendar.google.com/public/basic.ics">.ics</a> file and add it to your calendar so won't miss any of our meetings!</font>

0 comments on commit ef55682

Please sign in to comment.