~phw/scotty#6: 
Scrobblerlog timestamps can be for local time

Some hardware players are not timezone aware and hence the timestamps in the .scobbler.log file are local time instead of UTC.

There should be a timezone config for the scobbler-log backend to set the timezone. Times then need to be converted to UTC on export or to this timezone on import.

Status
REPORTED
Submitter
~phw
Assigned to
No-one
Submitted
1 year, 2 months ago
Updated
11 months ago
Labels
backend feature

~phw 1 year, 2 months ago*

From IRC log:

kellnerd> outsidecontext: Cool, I had a look and you also have a scrobbler.log parser :)
23:39 One remark about timestamps: My sansaclipv2 is not timezone-aware, so it stores Unix timestamps in local time and I have to compensate the timetone offset.
23:39 I don't know about your player, but that's something you might have to consider as well.
23:40 For reference, here is what I do: https://github.com/kellnerd/listenbrainz-ts/blob/b5daaf3e4783a57f964bcd9d71ed571f8d05934b/timestamp.ts#L42
23:41 phw aren't unix timestamps to be supposed to be UTC?
23:41 They are, but what should the player do if it does not know its own timezone.
23:41 phw true :)
23:42 but that's interesting. I guess I'll add a timezone configuration for the scrobblerlog backend then
23:42 thanks for the hint
23:42 You're welcome :)
23:44 My CLI even has an option to add a time offset to account for the cases where I forgot to set the clock after a timezone change.

Register here or Log in to comment, or comment via email.