ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: smussler on January 19, 2020, 07:37:37 PM

Title: Year not written correctly for FileCreateYear to a jpg file
Post by: smussler 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.
Title: Re: Year not written correctly for FileCreateYear to a jpg file
Post by: StarGeek on January 19, 2020, 07:41:35 PM
What is your actual command because there is no tag called FileCreateYear.
Title: Re: Year not written correctly for FileCreateYear to a jpg file
Post by: StarGeek 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. 
Title: Re: Year not written correctly for FileCreateYear to a jpg file
Post by: smussler 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