Describe the bug
When I try to set the ModifyDate it doesnt work, Instead it shows the date when the file was modified by exiftool-vendored
To Reproduce
function updateExifCreateDate(filePath, date){
try {
const timestamp = date.toISOString();
await exiftool.write(filePath, {
CreateDate: timestamp, // Update the creation date
ModifyDate: timestamp
}, ['-overwrite_original']); // Pass the flag as an array of strings
console.log(`Updated EXIF CreateDate for ${filePath} to ${timestamp}`);
} catch (error) {
console.error(`Error updating EXIF CreateDate for ${filePath}:`, error);
}
};
Windows explorer shows the updated CreateDate but the ModifyDate is the time the file was modified:
Expected behavior
The ModifyDate should be set to the same date as the CreateDate
Environment (please complete the following information):
Describe the bug When I try to set the ModifyDate it doesnt work, Instead it shows the date when the file was modified by exiftool-vendored
To Reproduce
Windows explorer shows the updated CreateDate but the ModifyDate is the time the file was modified:![image](https://github.com/photostructure/exiftool-vendored.js/assets/126079750/bef60700-e7b2-4498-94a8-86cb967951ee)
Expected behavior The ModifyDate should be set to the same date as the CreateDate
Environment (please complete the following information):