fixed: time stamps in local time zone
This commit is contained in:
parent
1455c01695
commit
32f17ba99e
5
main.js
5
main.js
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue