diff --git a/Community/Tdarr_Plugin_z80t_keep_original_date.js b/Community/Tdarr_Plugin_z80t_keep_original_date.js index ebdd36a56..e7000b2ac 100644 --- a/Community/Tdarr_Plugin_z80t_keep_original_date.js +++ b/Community/Tdarr_Plugin_z80t_keep_original_date.js @@ -60,11 +60,11 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { try { log('Changing date...'); - const { mtimeMs } = otherArguments.originalLibraryFile.statSync; + const { mtimeMs, ctimeMs } = otherArguments.originalLibraryFile.statSync; if (os.platform() === 'win32') { fs.utimes( file._id, - new Date().getTime() / 1000, + ctimeMs / 1000, mtimeMs / 1000, (err) => { if (err) {