Explorar o código

Turns out I shoulda tested this more

Colin Powell %!s(int64=2) %!d(string=hai) anos
pai
achega
966aeefbdd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
             )