From 879f882ef1fb040a7fca009bf95dd1e7087a3cde Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 9 Mar 2022 15:42:29 +0200 Subject: [PATCH] * InfoLog: fix saving an InfoLog twice gave error that entry was modified, if user timezone was different from server --- infolog/inc/class.infolog_bo.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index e55a60e758..13e98af296 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -959,8 +959,7 @@ class infolog_bo // It's now disabled for xmlrpc, as otherwise the xmlrpc code need to be changed! $xmlrpc = is_object($GLOBALS['server']) && $GLOBALS['server']->last_method; $check_modified = $values['info_datemodified'] && !$xmlrpc ? $to_write['info_datemodified'] : false; - $values['info_datemodified'] = $this->user_time_now; - $to_write['info_datemodified'] = $this->now; + $values['info_datemodified'] = $to_write['info_datemodified'] = $this->now; if ($check_modified && isset($values['info_etag'])) { ++$values['info_etag']; @@ -2325,4 +2324,4 @@ class infolog_bo } return $foundInfoLogs; } -} +} \ No newline at end of file