I have stored some information in a customer’s metafield. I want to be able to apply a filter to this based on the current time, but it seems there is no way to access the current timestamp from within the liquid template.
The liquid template is cached, so this:-
{{ "now" | date: "%Y-%m-%d %H:%M" }}
will only give the last time the page was updated in the cache.
I was hoping that the current timestamp might be included as one of the template variables that’s passed in. Has anyone else had a similar issue and managed to work around it?
Thanks.