Ver código fonte

Turns out I shoulda tested this more

Colin Powell 2 anos atrás
pai
commit
966aeefbdd
1 arquivos alterados com 1 adições e 1 exclusões
  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)
             )