Closed stephanvane closed 2 months ago
This is actually behaving as expected: many popular smartphones and camera manufacturers erroneously mark non-time-zone-specific timestamps with a Z suffix (perhaps because the engineers didn’t know what Z meant?).
FWIW, if the timestamp uses an offset, it shouldn’t be ignored. And, more explicitly, you can set the timezoneOffset tag.
You’re also certainly free to wrap read() with your own code to add additional heuristics!
Describe the bug When reading an xmp file, the timezone can succesfully be extracted using the following code:
The result looks something like this:
But when the timezone is UTC, we don't get this information:
To Reproduce The files used to reproduce these results are:
returns
UTC+3
:returns nothing:
Expected behavior I would expect that the second example would return:
Environment (please complete the following information):
v20.10.0