From 35f3976d6c2e60c94c126d803a48324a15d3d960 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:41:09 +0100 Subject: [PATCH] Use ctimeMs --- Community/Tdarr_Plugin_z80t_keep_original_date.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_z80t_keep_original_date.js b/Community/Tdarr_Plugin_z80t_keep_original_date.js index ebdd36a..e7000b2 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) {