# Printing item date in multiple timezones

**URL:** <https://talk.jekyllrb.com/t/printing-item-date-in-multiple-timezones/7730>\
**Category:** Uncategorized\
**Created:** [October 20, 2022, 8:02pm UTC](https://talk.jekyllrb.com/t/printing-item-date-in-multiple-timezones/7730 "2022-10-20T20:02:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keunes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/keunes/32/4923_2.png) [@keunes](https://talk.jekyllrb.com/u/keunes)\
**Post date:** [October 20, 2022, 8:02pm UTC](https://talk.jekyllrb.com/t/printing-item-date-in-multiple-timezones/7730/1 "2022-10-20T20:02:09Z")

</div>

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](https://stackoverflow.com/questions/57995418/how-can-you-convert-time-to-utc-in-jekyll), but it’s a custom plugin which apparently not possible on GitHub pages.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 21, 2022, 1:15am UTC](https://talk.jekyllrb.com/t/printing-item-date-in-multiple-timezones/7730/2 "2022-10-21T01:15:45Z")

</div>

are you trying to change it to just one timezone or to the users/viewers timezone?

I am not sure I have any idea for either one other than using JS.

---

<div class="post-metadata">

**Author:** ![keunes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/keunes/32/4923_2.png) [@keunes](https://talk.jekyllrb.com/u/keunes)\
**Post date:** [October 21, 2022, 5:41am UTC](https://talk.jekyllrb.com/t/printing-item-date-in-multiple-timezones/7730/3 "2022-10-21T05:41:10Z")

</div>

I was thinking to just hard-code the time zones in which to display. E.g. by taking `page.date` -7 for PDT (if possible at all to do math with times in Jekyll).  
But if it’s possible to do this on the fly and display the time zone of the user’s system that would be super nice.
