Turns out I shoulda tested this more
This commit is contained in:
@ -49,7 +49,7 @@ def process_audioscrobbler_tsv_file(file_path, user_tz=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
timestamp = (
|
timestamp = (
|
||||||
datetime.fromtimestamp(int(row[6]))
|
datetime.utcfromtimestamp(int(row[6]))
|
||||||
.replace(tzinfo=user_tz)
|
.replace(tzinfo=user_tz)
|
||||||
.astimezone(pytz.utc)
|
.astimezone(pytz.utc)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user