bolsinga / itunes_json

This uses the iTunesLibrary or MusicKit framework to emit JSON representing the music library.
2 stars 0 forks source link

Daylight Savings Time Issue #328

Open bolsinga opened 6 months ago

bolsinga commented 6 months ago

iTunesLibrary returns a Date. The ISO 8601 formatter says it will format it as UTC.

However unchanged play dates from iTunesLibrary will shift by 1 hour when Daylight Savings Time (DST) starts and ends.

Is this correct? I'd expect UTC to be unaffected by DST.

Need to write a sample to learn if iTunesLibrary Date is wrong, or if my assumptions about how ISO 8601 formatter works are wrong.

bolsinga commented 6 months ago

You can see the most recent large change here: https://github.com/bolsinga/itunes_backups/commit/a178b5a242d1d25adce28a8270c831ae7716c60c