3
Liquid timezone filter
Completed
Slav Ivanov
Sep 28, 2021
Ability to change the timezone in liquid merge tags.
{{ "now" | timezone: "America/Los_Angeles" }} should output 2021-09-28 05:15:34 -0700
Comments
Ability to change the timezone in liquid merge tags.
{{ "now" | timezone: "America/Los_Angeles" }} should output 2021-09-28 05:15:34 -0700
FANTASTIC & CONGRATULATIONS!!! Kalo, Slav, and the entire Encharge team. Thank you so much. Great progress!
This feature is now live.
This feature allows you to set timezones using liquid tags. There are 2 main cases:
{{“now” | set_timezone: “Europe/Berlin”}}
Changes the timezone of the time to the specified timezone. For instance, if you use {{person.dateField | set_timezone: “Asia/Jerusalem”}} will keep the same date and time as the "dateField", but treat it as GMT+3.
{{“now” | in_timezone: “Europe/Berlin”}}
Converts the current time to the specified timezone.
FANTASTIC!!! Kalo, Slav, and the entire Encharge team. Thank you so much. Great progress!