Ver código fonte

Need to actually used a timezone instance

Colin Powell 1 ano atrás
pai
commit
79265feb39
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      vrobbler/apps/videogames/retroarch.py

+ 3 - 1
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 = []