Hello,
I’m using a collection to display a list of events on our website. An event has the date including timezone saved in the front matter:
date: "2022-07-22 18:00:00 +0200"
The event date is displayed in the server’s time zone via the following code in my event.html
layout:
{% t long_month.{{ page.date | date: "%B" }} %} {{ page.date | date: "%-d, %Y"}} {{ page.date | date: "%R"}} {{ page.date | date: "%Z"}}
Which gives the following output (with the timezone set on my computer):
July 22, 2022 18:00 CEST
Can anyone think of some way to convert this into other time zones?
What I would like to be displayed on the site:
July 22, 2022 09:00 PDT / 18:00 CEST
I found How can you convert Time to UTC in Jekyll? - Stack Overflow, but it’s a custom plugin which apparently not possible on GitHub pages.