fix
template
main
#55 / 70
fix(template): handle datetime objects in fmtrelative filter
The filter assumed value was always a string and called value.replace('Z', ...) which invokes datetime.replace() with a positional string arg when value is already a datetime object, causing TypeError. Now checks isinstance(value, datetime) first and only parses from ISO string when needed.
1
file changed
372
files in snapshot
Files Changed
372 in snapshot
~1
No comments yet. Be the first to start the discussion.