How can I use the Liquid filter 'in_time_zone' correctly?

Hello,
I need to get time of a specific timezone.
I found the Liquid filter in_time_zone but it seems that it doesn’t work on Shopify.

{{ assign dt = 'now' | in_time_zone: 'America/New_York' | date: '%H:%M' }}

Can someone help ?
Thank.

Hi @Akagibi ,

This is already been asked and answered here. It would be best to use a javascript code on this.

1 Like