Author Topic: Year not written correctly for FileCreateYear to a jpg file  (Read 117 times)

smussler

  • Newbie
  • *
  • Posts: 2
Year not written correctly for FileCreateYear to a jpg file
« on: January 19, 2020, 07:37:37 PM »
When writing a date with a year like 1957 to FileCreateYear, exiftool is writing the year as 2057.
Works correctly for DateTimeOriginal
Version 11.7.9 in use.

C:\Data\Code\VB_2019\DBS\Photo6\exiftool.exe -preserve -overwrite_original  -DateTimeOriginal="1957:05:01 12:00:00" "E:\Data_E\000Camera\2019\35mm-Slides_1\_APR0843.JPG" > c:\temp\EditResult.txt 2>&1

Above works for -DateTimeOriginal
Same command with FileCreateYear, writes the wrong year.

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3129
Re: Year not written correctly for FileCreateYear to a jpg file
« Reply #1 on: January 19, 2020, 07:41:35 PM »
What is your actual command because there is no tag called FileCreateYear.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3129
Re: Year not written correctly for FileCreateYear to a jpg file
« Reply #2 on: January 20, 2020, 11:59:47 AM »
Do you mean FileCreateDate?

ExifTool uses standard Perl date/time routines to do the necessary conversions to set the file system time stamps.  These routines are based on an epoch date of 1970, and the behavior before that can be funny.

Exiftool cannot properly set file system dates between 1900:01:01 00:00:00 and 1970:12:31 23:59:59.

Since digital filesystems did not exists at the time you are trying to set, it is obviously incorrect metadata and you're using system date/time for something other than the intended purpose. 
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

smussler

  • Newbie
  • *
  • Posts: 2
Re: Year not written correctly for FileCreateYear to a jpg file
« Reply #3 on: January 22, 2020, 09:48:06 PM »
Yes FileCreateDate is what I am trying to write.  I am in the the process of taking Macro Photos of old 35mm slides.  I want to write the date of the original slide to the image.  I guess I'll stick with the DateTimeOriginal, which is working to meet my needs.  Thanks for the responses.  Steve Mussler