Attempting to shift time fields in Pentax raw file (PEF) from a Pentax K1mkII does not update the file but manually specifying the information instead of -time+=+07:00 does.
Windows 11
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool -ver
12.96
starting values
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool -time:all c:\test\*pef
File Modification Date/Time : 2024:09:16 22:15:52-04:00
File Access Date/Time : 2024:09:16 22:22:39-04:00
File Creation Date/Time : 2024:09:16 21:03:09-04:00
Modify Date : 2024:05:25 04:33:31
Date/Time Original : 2024:05:25 04:33:31
Create Date : 2024:05:25 04:33:31
Date : 2024:05:25
Time : 11:33:31
World Time Location : Destination
Hometown DST : No
Destination DST : Yes
Hometown City : New York
Destination City : Paris
Manufacture Date : 2021:07:16
Let's try shifting all the time fields at once
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool -time:all+=+7:00 c:\test\*pef
0 image files updated
1 image files unchanged
That didn't work. Let's try specifying one tag at a time.
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool -DateTimeOriginal+=+7:00 c:\test\*pef
0 image files updated
1 image files unchanged
Still not working. Let's try manually specifying a date - time value.
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool "-DateTimeOriginal=2023:05:25 11:33:31" c:\test\*pef
1 image files updated
That works.
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool -time:all c:\test\*pef
File Modification Date/Time : 2024:09:16 22:24:04-04:00
File Access Date/Time : 2024:09:16 22:24:05-04:00
File Creation Date/Time : 2024:09:16 21:03:09-04:00
Modify Date : 2024:05:25 04:33:31
Date/Time Original : 2023:05:25 11:33:31
Create Date : 2024:05:25 04:33:31
Date : 2024:05:25
Time : 11:33:31
World Time Location : Destination
Hometown DST : No
Destination DST : Yes
Hometown City : New York
Destination City : Paris
Manufacture Date : 2021:07:16
I have the same behavior if I specify an explicit file name. What am I doing wrong in the time shift example?
Verbose output:
C:\Users\patri\Downloads\exiftool-12.96_64\exiftool-12.96_64> exiftool -v3 -DateTimeOriginal+=+7:00 c:\test\*pef
Shifting MIE-Doc:DateTimeOriginal if tag exists
Shifting QuickTime:DateTimeOriginal if tag exists
Shifting UserData:DateTimeOriginal if tag exists
Shifting CanonRaw:DateTimeOriginal if tag exists
Shifting Kodak:DateTimeOriginal if tag exists
Shifting Reconyx:DateTimeOriginal if tag exists
Shifting Reconyx:DateTimeOriginal if tag exists
Shifting Reconyx:DateTimeOriginal if tag exists
Shifting XMP-exif:DateTimeOriginal if tag exists
Shifting ExifIFD:DateTimeOriginal if tag exists
======== c:/test/IMGP1448.PEF
Rewriting c:/test/IMGP1448.PEF...
Editing tags in: ExifIFD IFD0 MIE-Doc MakerNotes QuickTime TIFF UserData XMP
Creating tags in:
FileType = PEF
FileTypeExtension = PEF
MIMEType = image/x-pentax-pef
Rewriting IFD0
Rewriting XMP
[nothing changed in XMP]
Rewriting ExifIFD
Rewriting MakerNotePentax5
Rewriting LensRec
[nothing changed in LensRec]
Rewriting ShakeReductionInfo
[nothing changed in ShakeReductionInfo]
Rewriting FaceInfo
[nothing changed in FaceInfo]
Rewriting AWBInfo
[nothing changed in AWBInfo]
Rewriting TimeInfo
[nothing changed in TimeInfo]
Rewriting LensCorr
[nothing changed in LensCorr]
Rewriting CameraSettingsUnknown
[nothing changed in CameraSettingsUnknown]
Rewriting AEInfo3
[nothing changed in AEInfo3]
Rewriting LensInfo
Rewriting LensData
[nothing changed in LensData]
[nothing changed in LensInfo]
Rewriting FlashInfoUnknown
[nothing changed in FlashInfoUnknown]
Rewriting CameraInfo
[nothing changed in CameraInfo]
Rewriting BatteryInfo
[nothing changed in BatteryInfo]
Rewriting AFInfo
[nothing changed in AFInfo]
Rewriting KelvinWB
[nothing changed in KelvinWB]
Rewriting ColorInfo
[nothing changed in ColorInfo]
Rewriting EVStepInfo
[nothing changed in EVStepInfo]
Rewriting ShotInfo
[nothing changed in ShotInfo]
Rewriting FilterInfo
[nothing changed in FilterInfo]
Rewriting LevelInfo
[nothing changed in LevelInfo]
Rewriting PixelShiftInfo
[nothing changed in PixelShiftInfo]
Rewriting AFPointInfo
[nothing changed in AFPointInfo]
Rewriting UnknownInfo
[nothing changed in UnknownInfo]
[nothing changed in MakerNotePentax5]
[nothing changed in ExifIFD]
Rewriting GPS
[nothing changed in GPS]
Rewriting IFD1
Rewriting IFD2
[nothing changed in IFD0]
Copying 2 image data blocks
Nothing changed in c:/test/IMGP1448.PEF
0 image files updated
1 image files unchanged
You have a + after the equal sign that shouldn't be there. See this example command (https://exiftool.org/exiftool_pod.html#exiftool--DateTimeOriginal--0:0:0-1:30:0-dir).
Example
C:\>exiftool -G1 -a -s -Time:All y:\!temp\Test4.jpg
[System] FileModifyDate : 2024:09:15 12:23:06-07:00
[System] FileAccessDate : 2024:09:16 20:11:46-07:00
[System] FileCreateDate : 2006:10:31 16:37:23-07:00
[IFD0] ModifyDate : 2024:09:16 12:00:00
[ExifIFD] DateTimeOriginal : 2024:09:16 12:00:00
[ExifIFD] CreateDate : 2024:09:16 12:00:00
C:\>exiftool -P -overwrite_original -time:all+=7:00 y:\!temp\Test4.jpg
1 image files updated
C:\>exiftool -G1 -a -s -Time:All y:\!temp\Test4.jpg
[System] FileModifyDate : 2024:09:15 12:23:06-07:00
[System] FileAccessDate : 2024:09:16 20:12:18-07:00
[System] FileCreateDate : 2006:10:31 16:37:23-07:00
[IFD0] ModifyDate : 2024:09:16 19:00:00
[ExifIFD] DateTimeOriginal : 2024:09:16 19:00:00
[ExifIFD] CreateDate : 2024:09:16 19:00:00
The file system time stamps have not been changed because they are marked as Unsafe to copy/edit. You must explicitly change them separately in the command.