gabriel / musehub public
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.

G Gabriel Cardona <gabriel@tellurstori.com> · 6d ago Mar 17, 2026 · bc49aa36 · parent 88fcceed
1
file changed
372
files in snapshot
Files Changed 372 in snapshot
~1

0 comments

No comments yet. Be the first to start the discussion.