"Not a ISO 8601 date string" error when extracting MP3's with 0000 year tag
I see lots of extraction errors like this:
/media/HD1/Music/Sound Of The World (Disc 1) [0000]/09 Mas Amor.mp3 '0000-01-01T00:00:00Z' is not a ISO 8601 date string. Allowed form is CCYY-MM-DDThh:mm:ss[.ss…
/media/HD1/Music/Less Than Jake - [0000]/00 Sleep It Off.mp3 '0000-01-01T00:00:00Z' is not a ISO 8601 date string. Allowed form is CCYY-MM-DDThh:mm:ss[.ss…
The error comes from tracker_date_new_from_iso8601()
due to g_date_time_new_from_iso8601()
returning an error for the all-zero date string.
The string was generated by tracker_date_guess()
from an MP3 that has year 0000 listed.
I assume that '0000-01-01T00:00:00Z' is indeed invalid as there is no year 0, so tracker_date_guess()
should be returning NULL in these cases.