Need to actually used a timezone instance

This commit is contained in:
2023-05-27 23:09:54 -04:00
parent 1ba5b4cf4b
commit 79265feb39

View File

@ -85,7 +85,9 @@ def import_retroarch_lrtl_files(playlog_path: str, user_id: int) -> List[dict]:
logger.warning(f"User ID {user_id} is not valid, cannot scrobble")
raise UserNotFound
game_logs = load_game_data(playlog_path, user.profile.timezone)
game_logs = load_game_data(
playlog_path, pytz.timezone(user.profile.timezone)
)
found_game = None
new_scrobbles = []