Turns out I shoulda tested this more

This commit is contained in:
2023-02-17 13:25:56 -05:00
parent d944fdd0c0
commit 966aeefbdd

View File

@ -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)
)