Jelajahi Sumber

Turns out I shoulda tested this more

Colin Powell 2 tahun lalu
induk
melakukan
966aeefbdd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      vrobbler/apps/scrobbles/tsv.py

+ 1 - 1
vrobbler/apps/scrobbles/tsv.py

@@ -49,7 +49,7 @@ def process_audioscrobbler_tsv_file(file_path, user_tz=None):
             )
 
             timestamp = (
-                datetime.fromtimestamp(int(row[6]))
+                datetime.utcfromtimestamp(int(row[6]))
                 .replace(tzinfo=user_tz)
                 .astimezone(pytz.utc)
             )