Hi,
i have or better had the same problem that with PL 5 the export don’t write the correct timezone. With PL 4 i had no problems. So when i read through all the entries it looks not so easy to find the root of the problem. I am using a Sony camera and the exif date looks like:
File Modification Date/Time : 2021:05:20 16:04:19+02:00
File Access Date/Time : 2022:02:22 16:18:20+01:00
File Inode Change Date/Time : 2021:06:08 21:20:48+02:00
Date/Time Original : 2021:05:20 16:04:19
Offset Time : +02:00
Offset Time Original : +02:00
Offset Time Digitized : +02:00
Sony Exposure Time 2 : 1/2048
Exposure Time : 1/2000
Sony Exposure Time : 1/2048
Sub Sec Time : 100
Sub Sec Time Original : 100
Sub Sec Time Digitized : 100
Date/Time Original : 2021:05:20 16:04:19.100+02:00
So there are only on entry that don’t have the correct Time Zone. But nothing have changed from the exif data the camera write in the files. between PL4 and PL5. So also this one entry should not be the problem.
I am using Photo Mechanics to copy the files from the SD card to my hard disk. and Photo Mechanics write xmp files and this file have two Time entries without Timezone:
<x:xmpmeta xmlns:x=“adobe:ns:meta/” x:xmptk=“XMP Core 5.6.0”>
<rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”>
<rdf:Description rdf:about=""
xmlns:photoshop=“http://ns.adobe.com/photoshop/1.0/”
xmlns:xmp=“http://ns.adobe.com/xap/1.0/”
xmlns:exif=“http://ns.adobe.com/exif/1.0/”
xmlns:photomechanic=“http://ns.camerabits.com/photomechanic/1.0/”
xmlns:aux=“http://ns.adobe.com/exif/1.0/aux/”
photoshop:DateCreated="2022-06-05T06:09:45"
** xmp:CreateDate=“2022-06-05T06:09:45”**
xmp:Rating=“0”
exif:GPSLatitude=“48,37.021N”
exif:GPSLongitude=“16,4.036E”
exif:GPSDateTime=“2022-06-05T04:140505560121353:45Z”
exif:GPSMapDatum=“WGS-84”
photomechanic:ColorClass=“0”
photomechanic:Tagged=“False”
photomechanic:Prefs=“0:0:0:006119”
photomechanic:PMVersion=“PM6”
aux:ImageNumber=“6119”/>
</rdf:RDF>
</x:xmpmeta>
So as the data are there in the RAW files of Sony Photo Mechanics don’t write it in the XMP file. And there comes in that PL5 in contrast to PL4 in my mind changed the order in which the data in the XMP and RAW are processed was changed.
Why i came to this conclusion. When i delete the two entries in the XMP file the Time information are correct written to the JPG output. Otherwise when i corrected the XMP entries with the Timezone also it works correct.
So in my case with Sony RAW files it is a mix of Photo Mechanics don’t write Time Zone information in the XMP file and changing the processing order between PL4 and PL5 using the Time Information in the XMP or original RAW file.
There was a workaround described int the Photo Mechanics forum to use ALWAYS_WRITE_TIME_ZONE ON switch in a configuration file of Photo Mechanics. But that does not force to use the Time Zone in the RAW instead it uses the Time Zone information of the computer when importing to create the XMP entry with time zone. That is not practical for me because using the Time Zone of the computer you have always to remember if the time zone is correct.
As i found out that this two Time entries in the XMP file are not necessary to process correct i wrote a little shell script that i will run after importing with Photo Mechanics that delete this two entries for all XMP files in a given directory:
#!/bin/sh
DIRECTORY="$1"
cd /Volumes/Fotos-Temp/2022/$DIRECTORY
sed -i ‘’ ‘/photoshop:DateCreated/d’ *.XMP
sed -i ‘’ ‘/xmp:CreateDate/d’ *.XMP
cd /Volumes/Fotos-Backup/2022/$DIRECTORY
sed -i ‘’ ‘/photoshop:DateCreated/d’ *.XMP
sed -i ‘’ ‘/xmp:CreateDate/d’ *.XMP
Hope this helps.
Regards
Herbert