[videogamse] Guard rails around tz info
All checks were successful
build & deploy / test (push) Successful in 1m57s
build & deploy / build-and-deploy (push) Successful in 29s

This commit is contained in:
2026-05-24 10:58:31 -04:00
parent 939c89d368
commit 972568bebc

View File

@ -161,7 +161,8 @@ def import_retroarch_lrtl_files(playlog_path: str, user_id: int) -> List[dict]:
playback_position_seconds=playback_position_seconds,
played_to_completion=True,
in_progress=False,
timezone=timestamp.tzinfo.tzname,
timezone=getattr(timestamp.tzinfo, "key", None)
or getattr(timestamp.tzinfo, "zone", None),
long_play_seconds=game_data["runtime"],
long_play_complete=long_play_complete,
user_id=user_id,