How to change time or time zone of jpeg's and raw's

Started by karmisch-noppen0a, October 25, 2024, 10:43:45 AM

Previous topic - Next topic

karmisch-noppen0a

Hi,

### yes i've read all the already existing posts (not only) in this forum, but I still have no working solution to my problem - I am sorry if it is already answered somewhere else but I am quite a newbie when it comes to commandlinetools. So thank you in advance!


I was on Vacation lately and I forgot to change the time zone in my camera - so now all the pictures have a time 6 hours late. For example: When I took a picture at 10am (UTC+8), my PC shows me the time 4am (here it's UTC+2), but I want it to show 10am here aswell).

I already tried these commands, but none of them worked (It always changed the time to the time I am running the command, for example 16:40 while I am writing this):



exiftool -r "-AllDates-=6:0:0" -overwrite_original "C:\Users\User\Desktop\Indonesien_Backup"


exiftool -r "-DateTimeOriginal-=6:0:0" "-CreateDate-=6:0:0" "-ModifyDate-=6:0:0" -overwrite_original "C:\Users\User\Desktop\Indonesien_Backup"

exiftool -r "-alldates-=0:0:6 0" -overwrite_original


Can s.o. help me? All the pictures are in subfolders in a folder called "Indonesien_Backup".

StarGeek

What are you using to see the 4am time stamp? For example, if you are using Right-Click->Properties and looking at the time stamps there, those values are saved as UTC and are supposed to be adjusted to your local time zone.

Use this command to view all the time stamps in the file
exiftool -time:all -G1 -a -s file.jpg
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

karmisch-noppen0a

Im just using the Windows explorer. There I see "Änderungsdatum" which I think translates to "Date modified" (or ModifyDate?) in english. When right clicking, I see "Aufnahmedatum" (Date taken?). Those two are at 4am (and should be 10am). The "Erstelldatum" (Date created or CreateDate?) is at the Time I copied the Files on my Computer.

If I run the Command I can see this:

[System]        FileModifyDate                  : 2024:09:30 04:12:46+02:00
[System]        FileAccessDate                  : 2024:10:26 14:21:07+02:00
[System]        FileCreateDate                  : 2024:10:25 16:27:15+02:00
[IFD0]          ModifyDate                      : 2024:09:30 04:12:46
[ExifIFD]       DateTimeOriginal                : 2024:09:30 04:12:46
[ExifIFD]       CreateDate                      : 2024:09:30 04:12:46

StarGeek

The "Created", "Modified", and "Accessed" time stamps that appear when you first open properties are the file system time stamps. These are saved as UTC and will always be adjusted to local time. You cannot change the time zone on these


The "Date Taken" you see when you click the Details tab are the EXIF time stamps embedded in the file. These are supposed to be set to the local time where you took the picture. This is not adjusted by the computer and doesn't show the time zone.


Looking at the output, it looks like you want to add six hours to the ModifyDate, DateTimeOriginal, and CreateDate. That would be
exiftool -r "-AllDates+=6:0:0" -overwrite_original "C:\Users\User\Desktop\Indonesien_Backup"

You could additionally set a time zone by adding this to the command. The time zone will not show up in the Properties window, but it will stay with the file and might be read by other programs you use.
"-OffsetTime*=+08:00"
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

karmisch-noppen0a

Okay thank you! So just to clarify: There is no possibility to change the "Date taken"? Because in the meantime I think that is want would be my solution.

StarGeek

Quote from: karmisch-noppen0a on October 27, 2024, 06:27:33 AMOkay thank you! So just to clarify: There is no possibility to change the "Date taken"? Because in the meantime I think that is want would be my solution.

Windows fills the "Date Taken" property with the date/time from either the DateTimeOriginal or CreateDate tags. The command I gave will edit those, which will then change the "Date Taken" property.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype