in web version use local client time instead of server time for recording dateModified etc.

This commit is contained in:
zadam
2020-04-26 14:26:57 +02:00
parent 8f68ff1932
commit 586d6b4557
8 changed files with 33 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
"use strict";
const setupRoute = require('./setup');
const loginRoute = require('./login');
const indexRoute = require('./index');
@@ -82,6 +84,7 @@ function route(method, path, middleware, routeHandler, resultHandler, transactio
try {
const result = await cls.init(async () => {
cls.namespace.set('sourceId', req.headers['trilium-source-id']);
cls.namespace.set('localNowDateTime', req.headers['`trilium-local-now-datetime`']);
protectedSessionService.setProtectedSessionId(req);
if (transactional) {