Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Liquid date filter no longer working with ISO formatted dates

Solved

Liquid date filter no longer working with ISO formatted dates

Gavinator
Shopify Partner
1318 15 124

The date filter seems to have changed and is no longer recognizing ISO formatted dates. 

 

For example, this: 

{{ p.last | date: '%m/%d/%y %-I:%M %p' }}

Would output 03/16/2019 5:30 pm when p.last is '2019-03-16T17:30':

 

If you capture p.last separately then it will display the date correctly:

{% capture test %}{{ p.last }}{% endcapture %}
{{ test | date: '%m/%d/%y %-I:%M %p' }}

 

We have thousands of shops using this so it would be great if could work as before.

 

Thanks, Gavin.

 

 

 

www.bookthatapp.com
Accepted Solution (1)
Bo
Shopify Staff (Retired)
1793 197 469

This is an accepted solution.

Hey everyone,

 

Bo here from Shopify Support helping out!

 

I was just speaking with our technical team and they have let me know that this issue has now been resolved. If you could please clear your cache and try again this should work as expected. If you are still experiencing any issues with this, please do let us know. We really appreciate you all bringing this to our attention and apologize for any inconvenience caused.

 

All the Best,

Bo

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 7 (7)

Gavinator
Shopify Partner
1318 15 124

An example of where it breaks: https://charleston.classesbykessler.com/collections/classes/products/wine-blending

 

Add that to the cart and the date/time is not formatted correctly.

www.bookthatapp.com
Katy
Shopify Staff
779 43 178

Hi, Gavin.

 

Katy here from Shopify! I know we had spoken a little about this earlier via our support channels. Thank you for bringing this to our attention. I can confirm that our technical team are actively reviewing this for you at this time. 

 

I would like to leave the thread open, just for any of our community members who may like to chime in. Or, if any of our members have noticed something similar on their own store please feel free to reach out to us directly. You can do so via phone, chat, email or social media

 

Thank you!

Katy

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

samZapiet
Shopify Partner
12 0 4

Hey Katy,

 

Sam here from the Store Pickup + Delivery app, I have 7 stores having the same issue, do you have an update from the technical team on this?

 

Thanks,

 

Sam

Zapiet builds industry-leading pickup and delivery apps empowering 3000+ Shopify merchants in over 80 countries!
Bo
Shopify Staff (Retired)
1793 197 469

This is an accepted solution.

Hey everyone,

 

Bo here from Shopify Support helping out!

 

I was just speaking with our technical team and they have let me know that this issue has now been resolved. If you could please clear your cache and try again this should work as expected. If you are still experiencing any issues with this, please do let us know. We really appreciate you all bringing this to our attention and apologize for any inconvenience caused.

 

All the Best,

Bo

To learn more visit the Shopify Help Center or the Community Blog.

wearehike
Shopify Partner
3 0 0

I'm using {{ p.last | date: '%m/%d/%y %-I:%M %p' }} in the order confirmation email, and want to remove the time from the end of it.

How do I achieve this? I've tried removing %-I:%M %p but then in the email it shows "Liquid error: argument out of range".

Gavinator
Shopify Partner
1318 15 124

Converting times has also stopped working:

{{ p.last | date: '%-I:%M %p' }}

This would previously turn '14:00' into '2 pm'.

 

Thanks, Gavin.

www.bookthatapp.com
yolandakelley
Visitor
1 0 0

The date format should be not military time. please change back.