Workaround libkolabxml error on Etc/UTC timezone (Bifrost#T43830)
This commit is contained in:
parent
5ef54c3706
commit
ddf188b73b
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ abstract class kolab_format
|
||||||
$result->setTime($datetime->format('G'), $datetime->format('i'), $datetime->format('s'));
|
$result->setTime($datetime->format('G'), $datetime->format('i'), $datetime->format('s'));
|
||||||
|
|
||||||
// libkolabxml throws errors on some deprecated timezone names
|
// libkolabxml throws errors on some deprecated timezone names
|
||||||
$utc_aliases = array('UTC', 'GMT', '+00:00', 'Z', 'Etc/GMT');
|
$utc_aliases = array('UTC', 'GMT', '+00:00', 'Z', 'Etc/GMT', 'Etc/UTC');
|
||||||
|
|
||||||
if ($tz && in_array($tz->getName(), $utc_aliases)) {
|
if ($tz && in_array($tz->getName(), $utc_aliases)) {
|
||||||
$result->setUTC(true);
|
$result->setUTC(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue