From 79265feb391e4780758c5f09ed9f357bb4fbe2ed Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sat, 27 May 2023 23:09:54 -0400 Subject: [PATCH] Need to actually used a timezone instance --- vrobbler/apps/videogames/retroarch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/videogames/retroarch.py b/vrobbler/apps/videogames/retroarch.py index dfe69c0..bf2e54a 100644 --- a/vrobbler/apps/videogames/retroarch.py +++ b/vrobbler/apps/videogames/retroarch.py @@ -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 = []