[Fixed]-Python Shopify API output formatted datetime string in django template

1👍

Adding to what @ChidG said in his comment, you need to either:

  1. Do the modification in your view prior to rendering.

  2. Add a custom templatetag that takes this string and does it for you.
    Ie, {{ order.created_at|shopify_date|date:'Y-m-d H:i' }}

If you really insist on not doing the first, then the second is your only other hope.

👤Rebs

Leave a comment