mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
in web version use local client time instead of server time for recording dateModified etc.
This commit is contained in:
@@ -40,6 +40,10 @@ function formatDateTime(date) {
|
||||
return formatDate(date) + " " + formatTime(date);
|
||||
}
|
||||
|
||||
function localNowDateTime() {
|
||||
return dayjs().format('YYYY-MM-DD HH:mm:ss.SSSZZ')
|
||||
}
|
||||
|
||||
function now() {
|
||||
return formatTimeWithSeconds(new Date());
|
||||
}
|
||||
@@ -321,6 +325,7 @@ export default {
|
||||
formatDate,
|
||||
formatDateISO,
|
||||
formatDateTime,
|
||||
localNowDateTime,
|
||||
now,
|
||||
isElectron,
|
||||
isMac,
|
||||
|
||||
Reference in New Issue
Block a user