Hello there.
I was trying the Renamer tool and when I change the file name to be YYYY-MM-DD HH:NN:SS, the time is one hour ahead of what it was supposed to.
Practical example: I have a picture taken in Brazil at "2013:12:08 00:38:01Z". This region of Brazil is GMT-3 and had DST between October and February until 2019, when it stopped altogether. Considering that, the correct day would be 2013-12-07 and the correct time would be 22:38. The iMatch interface correctly shows the time being 22:38, probably based on the EXIF data (with no timezone, I assume). All this is fine and correct. The problem is that when I go to the renamer tool (Ctrl+F2) and apply a "Processing instruction" for time, it shouws "23:28"(!!!) rather than "22:38". I would understand it showing 21:38 (no DST), but I can't comprehend where the 23:38 comes from.
I know it's a small problem but without this information being correctly handled, it defeats my whole usage idea. Is there any way I can debug that or fix it somehow? Maybe some exif info is incorrect or I can toggle some config?
Thanks!
Variables use "local" time zone. See what the variable outputs without formatting.
I use this variable to rename my files to get the correct time.
{File.MD.XMP::photoshop\DateCreated\DateCreated\0|Format:YYYY-MM-DD hh-mm-ss}{File.MD.Exif::Main\37521\SubSecTimeOriginal\0|prefix:-;value:formatted}
That always works for me and produces the correct name. I don't know the details anymore, I think I had problems with files with no timezone in the time stamp. I believe the renamer uses this variable.
{File.DateTime}
Just copy the variables in the Vartoy app and check the results.
I think the Z means there is no time zone in the variable, Imatch uses the time zone of your computer, if you are not located where the picture was taken. There are many different tags for time, if Imatch shows the correct time you need to make sure you use the right timestamp.
Hope this helps,
Heiner
QuoteI believe the renamer uses this variable. {File.DateTime}
All IMatch features which works with file date and time use the global File.DateTime.
See How IMatch uses Date and Time Information (https://www.photools.com/help/imatch/index.html#how-imatch-uses-date-and-time.htm?dl=hid-1)
Variables format date and time values in local time zone by default. Local Time vs. Time-zone Offsets (https://www.photools.com/help/imatch/index.html#var_basics.htm?dl=h-203)
QuoteI think the Z means there is no time zone
Z is the ISO standard indicator for UTC.