mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
do NOT stall because DB does not know the TZ, report once per session
Happens with PHP 8.1 and older MariaDB (or MySQL) without (loaded) timezone data Unknown or incorrect time zone: 'UTC'
This commit is contained in:
parent
820be6cbed
commit
0961f0e7a5
@ -1196,7 +1196,18 @@ class Db
|
||||
}
|
||||
if (!empty($timezone) && !empty($sql))
|
||||
{
|
||||
$this->Link_ID->Execute($sql);
|
||||
try {
|
||||
$this->Link_ID->Execute($sql);
|
||||
}
|
||||
catch (\Exception $e) {
|
||||
// do NOT stall because DB does not know the TZ, report once per session
|
||||
if (empty($_SESSION[Session::EGW_APPSESSION_VAR][__CLASS__]['SQL-error-TZ']))
|
||||
{
|
||||
_egw_log_exception($e);
|
||||
$_SESSION[Session::EGW_APPSESSION_VAR][__CLASS__]['SQL-error-TZ'] = 'reported';
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user