From cfd357d0ef656065244308293ac80c3e3ed07eed Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Mon, 25 Sep 2023 06:36:59 +0100 Subject: [PATCH] Use mtimeMs --- Community/Tdarr_Plugin_z80t_keep_original_date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_z80t_keep_original_date.js b/Community/Tdarr_Plugin_z80t_keep_original_date.js index 91909c4..829d4bc 100644 --- a/Community/Tdarr_Plugin_z80t_keep_original_date.js +++ b/Community/Tdarr_Plugin_z80t_keep_original_date.js @@ -57,7 +57,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { try { log('Changing date...'); - touch.sync(file._id, { time: Date.parse(otherArguments.originalLibraryFile.statSync.mtime), force: true }); + touch.sync(file._id, { mtimeMs: otherArguments.originalLibraryFile.statSync.mtimeMs, force: true }); log('Done.'); responseData.infoLog += 'File timestamps updated or match original file\n'; return responseData;