mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fixed not used user date and time format, if no timezone set
This commit is contained in:
parent
7bfa59767c
commit
08d5ce1f30
@ -399,16 +399,13 @@ class egw_time extends DateTime
|
||||
$GLOBALS['egw_info']['server']['server_timezone'] = date_default_timezone_get();
|
||||
}
|
||||
self::$server_timezone = new DateTimeZone($GLOBALS['egw_info']['server']['server_timezone']);
|
||||
if (isset($GLOBALS['egw_info']['user']['preferences']['common']['tz']))
|
||||
if (!isset($GLOBALS['egw_info']['user']['preferences']['common']['tz']))
|
||||
{
|
||||
self::setUserPrefs($GLOBALS['egw_info']['user']['preferences']['common']['tz'],
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['timeformat']);
|
||||
}
|
||||
else
|
||||
{
|
||||
self::$user_timezone = clone(self::$server_timezone);
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['tz'] = $GLOBALS['egw_info']['server']['server_timezone'];
|
||||
}
|
||||
self::setUserPrefs($GLOBALS['egw_info']['user']['preferences']['common']['tz'],
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],
|
||||
$GLOBALS['egw_info']['user']['preferences']['common']['timeformat']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user