command -alldates<filename allows invalid timestamps

Started by sgraystar, May 01, 2019, 03:57:35 AM

Previous topic - Next topic

sgraystar

1) Your system type (Windows XP, Linux, Mac, etc).
Windows 10

2) The ExifTool version you are using (the output of the "exiftool -ver" command).
11.31


PS C:\Users\mervc\Pictures> exiftool -filename .
======== ./19610401-129999.tif
File Name                       : 19610401-129999.tif
    1 directories scanned
    1 image files read
PS C:\Users\mervc\Pictures> exiftool -alldates<filename .
    1 directories scanned
    1 image files updated
PS C:\Users\mervc\Pictures> exiftool -alldates .
======== ./19610401-129999.tif
Date/Time Original              : 1961:04:01 12:99:99
Create Date                     : 1961:04:01 12:99:99
Modify Date                     : 1961:04:01 12:99:99
    1 directories scanned
    1 image files read
PS C:\Users\mervc\Pictures>

Phil Harvey

OK, I'll add a range check on the date/time values for the next release.

- 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 ($).