Was their a change to how the date liquid filter works?

Was their a change to how the date liquid filter works?

WRuback
Shopify Partner
1 0 0

Hey, the theme we use on our shopify store uses:

id="swatch--{{ 'now' | date: '%N' }}"

to generate unique id number for our input radio's and forms. It was working perfectly fine until around 12 to 1 pm EST today, 3/31/23, when now each time that bit of code is used, instead of returning a unique timestamp each time it is called, it instead only returns the same timestamp each time.

 

I was able to quickly patch the errors it caused on our site, but I am wondering what changed could have occurred to cause this?

 

The theme we are using is Impact (https://themes.shopify.com/themes/impact), and even on there official demo site, this error is occurring at the time of this posting.

Reply 1 (1)

Eduard0
Shopify Partner
6 2 4

Hi @WRuback 

 

Eduardo here, from Maestrooo (the theme developers).

 

There was indeed a change on Shopify side that broke our theme. You can find more detailed information here: https://github.com/Shopify/dawn/issues/2483

 

In case you still need this, here's the gist we made for the fix: https://gist.github.com/bakura10/d52b0491ff17ecf5d01cb5c0cc5214b2

 

If you prefer you can contact us to apply the fix directly to your store, but I believe you're comfortable with coding, so if possible I would ask you to apply the fix on your own (we're currently fixing thousands of stores, so our support may take some time).

 

We're sorry for the inconvenience this may have caused.

Have a nice day.