mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 15:59:23 +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
978d356eed
commit
cf355d1d5c
@ -1218,7 +1218,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