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

@@ -13,6 +13,10 @@ function getSourceId() {
return namespace.get('sourceId');
}
function getLocalNowDateTime() {
return namespace.get('localNowDateTime');
}
function disableEntityEvents() {
namespace.set('disableEntityEvents', true);
}
@@ -50,6 +54,7 @@ module.exports = {
wrap,
namespace,
getSourceId,
getLocalNowDateTime,
disableEntityEvents,
isEntityEventsDisabled,
reset,