ExifTool Forum

ExifTool => Newbies => Topic started by: bugwriter on June 26, 2014, 04:09:12 AM

Title: how to remove the time zone information?
Post by: bugwriter on June 26, 2014, 04:09:12 AM
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
Title: Re: how to remove the time zone information?
Post by: Phil Harvey on June 26, 2014, 07:22:16 AM
Hi Olivier,

Sorry, but this can't easily be done.

- Phil
Title: Re: how to remove the time zone information?
Post by: oivindmi on September 26, 2021, 04:37:52 PM
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. :)
Title: Re: how to remove the time zone information?
Post by: StarGeek on September 26, 2021, 04:55:05 PM
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 (https://exiftool.org/forum/index.php?topic=6591.msg32875#msg32875) for the actual tags that Windows reads for what it displays in the Properties window.
Title: Re: how to remove the time zone information?
Post by: oivindmi on September 28, 2021, 03:19:44 PM
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. :)