fixed: time stamps in local time zone

This commit is contained in:
quenousimporte 2023-01-30 10:08:15 +01:00
parent 1455c01695
commit 32f17ba99e
1 changed files with 4 additions and 1 deletions

View File

@ -1613,7 +1613,10 @@ function loadquicknote()
function timestamp() function timestamp()
{ {
return (new Date).toISOString().replace("T", " ").replace(/\..*/, "").replace(/:/g, "."); var utc = new Date();
var loc = new Date(utc - utc.getTimezoneOffset() * 60 * 1000);
return loc.toISOString().replace("T", " ").replace(/\..*/, "").replace(/:/g, ".");
} }
function startnewnote() function startnewnote()