fix wrong timezone in creation time, if configured server-timezone does not match the one from the DB

This commit is contained in:
Ralf Becker 2020-10-19 13:45:46 +02:00
parent 09f95a8e78
commit b0d55160a3

View File

@ -125,7 +125,8 @@ class notifications_popup implements notifications_iface {
'account_id' => $this->recipient->account_id,
'notify_message' => $_message,
'notify_type' => self::_type,
'notify_data' => is_array($_data) ? json_encode($_data) : NULL
'notify_data' => is_array($_data) ? json_encode($_data) : NULL,
'notify_created' => Api\DateTime::user2server('now'),
), false,__LINE__,__FILE__,self::_appname);
if ($result === false) throw new Exception("Can't save notification into SQL table");
$push = new Api\Json\Push($this->recipient->account_id);