Couple of minor fixes (#13185)

This commit is contained in:
hius07
2025-02-01 21:25:51 +02:00
committed by GitHub
parent 763264a102
commit 8606b132e4
5 changed files with 25 additions and 26 deletions

View File

@@ -420,7 +420,9 @@ function ReaderAnnotation:addItem(item)
end
function ReaderAnnotation:onAnnotationsModified(items)
items[1].datetime_updated = os.date("%Y-%m-%d %H:%M:%S")
if items.update_datetime ~= false then
items[1].datetime_updated = os.date("%Y-%m-%d %H:%M:%S")
end
end
-- info