api/src/Egw.php 1 location
|
@@ 227-230 (lines=4) @@
|
| 224 |
|
$this->db->Link_ID->SetCharSet($GLOBALS['egw_info']['server']['system_charset']); |
| 225 |
|
} |
| 226 |
|
// restoring server timezone, to avoid warnings under php5.3 |
| 227 |
|
if (!empty($GLOBALS['egw_info']['server']['server_timezone'])) |
| 228 |
|
{ |
| 229 |
|
date_default_timezone_set($GLOBALS['egw_info']['server']['server_timezone']); |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
$this->define_egw_constants(); |
| 233 |
|
} |
api/src/DateTime.php 1 location
|
@@ 592-595 (lines=4) @@
|
| 589 |
|
public static function init() |
| 590 |
|
{ |
| 591 |
|
// if no server timezone set, use date_default_timezone_get() to determine it |
| 592 |
|
if (empty($GLOBALS['egw_info']['server']['server_timezone'])) |
| 593 |
|
{ |
| 594 |
|
$GLOBALS['egw_info']['server']['server_timezone'] = date_default_timezone_get(); |
| 595 |
|
} |
| 596 |
|
// make sure we have a valid server timezone set |
| 597 |
|
try { |
| 598 |
|
self::$server_timezone = new DateTimeZone($GLOBALS['egw_info']['server']['server_timezone']); |