Explorar el Código

Need to actually used a timezone instance

Colin Powell hace 2 años
padre
commit
79265feb39
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 = []