diff --git a/app.py b/app.py index 3ddfe96..5ca258e 100644 --- a/app.py +++ b/app.py @@ -230,6 +230,9 @@ def local_time_filter(dt, fmt='%d.%m.%Y %H:%M'): # date objects (not datetime) — format directly, no timezone conversion if not hasattr(dt, 'hour'): return dt.strftime(fmt) + # time objects — format directly, no timezone conversion + if not hasattr(dt, 'year'): + return dt.strftime(fmt) if dt.tzinfo is None: dt = dt.replace(tzinfo=_UTC_TZ) return dt.astimezone(_WARSAW_TZ).strftime(fmt)