Skip to product information
1 of 1
Published:2023.07.19

Get the current time in Shopify's Liquid now | date: is not "when the page was displayed to the user" but "the time when it was last generated from the template (the time the theme was updated)"

Get the current time in Shopify's Liquid now | date: is not "when the page was displayed to the user" but "the time when it was last generated from the template (the time the theme was updated)"

Applications

  • LIQUIDEdit
View full details

Shopify's liquid allows you to get the current time using now | date:, but it says that this gets the current time when the page was last generated from the template (the time the theme was updated), not when the page was displayed to the user.

When setting up a timed process in Liquid, even if it appears to work fine in the admin screen, it's a good idea to test it at the actual time to make sure it behaves as expected.

Related Post