how to remove the time zone information?

Started by bugwriter, June 26, 2014, 04:09:12 AM

Previous topic - Next topic

bugwriter

how to remove the time zone information in the first lines of the Exif (?
I just want to delete it:
change

File Modification Date/Time     : 2014:06:25 14:38:01+02:00
File Access Date/Time           : 2014:06:25 14:38:01+02:00
File Inode Change Date/Time     : 2014:06:25 14:38:01+02:00

into

File Modification Date/Time     : 2014:06:25 14:38:01
File Access Date/Time           : 2014:06:25 14:38:01
File Inode Change Date/Time     : 2014:06:25 14:38:01


Thanks, Olivier

Phil Harvey

Hi Olivier,

Sorry, but this can't easily be done.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

oivindmi

Hi Phil,

Is this still not possible to do?

How about making the following change:

File Modification Date/Time     : 2014:06:25 14:38:01+02:00
File Access Date/Time           : 2014:06:25 14:38:01+02:00
File Inode Change Date/Time     : 2014:06:25 14:38:01+02:00

into

File Modification Date/Time     : 2014:06:25 14:38:01+00:00
File Access Date/Time           : 2014:06:25 14:38:01+00:00
File Inode Change Date/Time     : 2014:06:25 14:38:01+00:00

Could you give me an example of how this could be done?
I normally use the following command to edit these times:
exiftool  "-FileCreateDate<CreateDate"  "-FileModifyDate<CreateDate"  "-CreationDate<CreateDate" "-DateTimeOriginal<CreateDate" "-modifydate<CreateDate"   ^
          -overwrite_original -ext "*" -r "path"

It is really annoying that these timezones makes windows display the pictures and videos in the wrong sequence. :)

StarGeek

#3
You cannot remove the time zone from the file system timestamps such as FileCreateDate/FileModifyDate.  These time stamps are part of the OS and will automatically be adjusted based upon the timezone set by the computer.  For example, your 2014:06:25 14:38:01+02:00 time stamp on my West Coast US (-07:00 time zone) computer will automatically be adjusted by Windows to show 2014:06:25 05:38:01-07:00.

Quote from: oivindmi on September 26, 2021, 04:37:52 PM
It is really annoying that these timezones makes windows display the pictures and videos in the wrong sequence. :)

What is the name that Windows gives for the time stamp you are looking at?  Depending upon what it is, it could be set wrong in the first place.  For example, if the file is a video file, then the QuickTime:CreateDate, which Windows displays as "Media created", needs to be set to UTC, as Windows correctly adjusts this time stamp to the local time.

See here for the actual tags that Windows reads for what it displays in the Properties window.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

oivindmi

Thanks for the tip about what timestamps windows use! It was really useful and I managed to "correct" the time for Createdate so that windows displays the right total time. :)