Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025