Shopify themes, liquid, logos, and UX
Has anyone figured out how to get the store's specified time zone in either liquid or javascript? I'm aware of the date filter, but not sure if this reports the time based on the client's browser or based on the store's locale...
{{ "now" | date: "%Y-%m-%d %H:%M" }}
I don't have a VPN that I can use to test it out from another country, so I'm asking for a friend here, lol. Thanks!
Hi @Jay_JUNKbrands,
The value will be the current time of when the page was last generated from the template, not when the page is presented to a user if caching or static site generation is involved.
So it will show the store's timezone, not that client's browser.
Hope it is clear to you.
Thank you so much for your help! I think I mostly understand what you're saying.
Would you happen to have any idea what triggers cause the page to be "generated from the template"? For example: Daily? Or only when the theme settings are saved?
Hi @Jay_JUNKbrands,
It is when you change the timezone in admin settings. Now will show according to Time zone, you can change and check it yourself 🙂 .
Hope it is clear to you.
If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
I am facing same issue, timezone which I am retrieving by shop Admin API is different from the time zone that is showing in store detail
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025