Timezone issue?

Started by rienvanham, December 21, 2022, 03:48:25 PM

Previous topic - Next topic

rienvanham

Hi Mario,

I have some photo's with an unknown creationdate but I know the year (e.g. 1967). When I fill the "Date Subject Created" with "1967-01-01" the photo is added to "1967" in the Timeline. But, if I fill the  "Date Subject Created" with "1967-01-01+02:00"  the photo is added to "1966" in the Timeline. Do I oversee something?

Thanks in advance!
Cheers, Rien.

Mario

What's your time-zone?

"1967-01-01+02:00" is very near to the beginning of the year. If your time-zone is > 2 hours from UTC, the File.DateTime (which is in your local time-zone) may fall into the year before.

Maybe use "1967-01-02+02:00" instead? (A day further from the beginning of the year)
Or maybe match the time-zone offset to your local time-zone offset.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rienvanham

#2
Hi Mario,

Off course I can live with it. I tried it with "1967-01-01" and "1967:01:01 00:00:00+01:00" (which is the correct timezone for the Netherlands) iMatch stores it in the correct year. But  1967-01-01 00:00:00+02:00" not. I was just wondering if I missed any setting.

Thanks for your response!

Mario

IMatch uses File.DateTime to anchor files on the timeline, event view etc.
See How IMatch uses Date and Time Information Check the date and time shown in the File Window (Default layout). It should be 1967 when the file is put into 1967.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rienvanham

I only tested it with "Date Subject Created". Didn't change any other tag. +02:00 stores it in 1966; +01:00 stores it in 1967.

Mario

Try the 2nd day of the year.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rienvanham

I just don't use the timezone because it isn't that important. Then it works fine.

Thanks!