diff --git a/sat/tools/common/date_utils.py b/sat/tools/common/date_utils.py index 86efcbaa..bd728acb 100644 --- a/sat/tools/common/date_utils.py +++ b/sat/tools/common/date_utils.py @@ -150,9 +150,9 @@ def date_fmt(timestamp, fmt="short", date_only=False, auto_limit=7, auto_old_fmt return dates.format_timedelta( delta, granularity="minute", add_direction=True, locale=locale_str ) - elif fmt in ("short", "long"): + elif fmt in ("short", "long", "full"): if date_only: - dt = datetime.fromtimestamp(timestamp, tz_info) + dt = datetime.datetime.fromtimestamp(timestamp, tz_info) return dates.format_date(dt, format=fmt, locale=locale_str) else: return dates.format_datetime(timestamp, format=fmt, locale=locale_str,