Fix user timezones in scrobbler files

This commit is contained in:
2023-02-06 23:28:57 -05:00
parent 541073aae3
commit 8f9c825903
2 changed files with 10 additions and 6 deletions

View File

@ -52,7 +52,9 @@ class AudioScrobblerTSVImport(TimeStampedModel):
tz = None
if self.user:
tz = self.user.profile.tzinfo
scrobbles = process_audioscrobbler_tsv_file(self.tsv_file.path, tz=tz)
scrobbles = process_audioscrobbler_tsv_file(
self.tsv_file.path, user_tz=tz
)
if scrobbles:
self.process_log = f"Created {len(scrobbles)} scrobbles"
for scrobble in scrobbles: