[videogamse] Guard rails around tz info
This commit is contained in:
@ -161,7 +161,8 @@ def import_retroarch_lrtl_files(playlog_path: str, user_id: int) -> List[dict]:
|
|||||||
playback_position_seconds=playback_position_seconds,
|
playback_position_seconds=playback_position_seconds,
|
||||||
played_to_completion=True,
|
played_to_completion=True,
|
||||||
in_progress=False,
|
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_seconds=game_data["runtime"],
|
||||||
long_play_complete=long_play_complete,
|
long_play_complete=long_play_complete,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user