From d9b77bb3a232c9a060cd0d44d93ad9d128b61ffe Mon Sep 17 00:00:00 2001 From: deekayhd <53017684+deekayhd@users.noreply.github.com> Date: Fri, 10 Apr 2026 19:56:00 +0200 Subject: [PATCH] fix incomplete removal of datetime_taken in PR #653 --- lib/dtutils/string.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dtutils/string.lua b/lib/dtutils/string.lua index c03bd66e..eefe56c1 100644 --- a/lib/dtutils/string.lua +++ b/lib/dtutils/string.lua @@ -785,11 +785,11 @@ function dtutils_string.build_substitute_list(image, sequence, variable_string, emon_short = os.date("%b", exiftime2systime(image.exif_datetime_taken)) if use_millisecs then eyear, emon, eday, ehour, emin, esec, emsec = - string.match(datetime_taken, "(%d+):(%d+):(%d+) (%d+):(%d+):(%d+)%.(%d+)$") + string.match(image.exif_datetime_taken, "(%d+):(%d+):(%d+) (%d+):(%d+):(%d+)%.(%d+)$") else emsec = "0" eyear, emon, eday, ehour, emin, esec = - string.match(datetime_taken, "(%d+):(%d+):(%d+) (%d+):(%d+):(%d+)$") + string.match(image.exif_datetime_taken, "(%d+):(%d+):(%d+) (%d+):(%d+):(%d+)$") end else log.msg(log.warn, "no capture date and time found in EXIF data")