mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 03:11:40 +01:00
fixed typo in setting date- and time-format in egw_time::check_set_tz_offset(), causing eg. importexport to fail, if async job before had no account or account had different format
This commit is contained in:
parent
9b7d0f0b17
commit
c9e1458c7f
@ -405,7 +405,7 @@ class preferences
|
|||||||
|
|
||||||
if (!empty($prefs['tz']))
|
if (!empty($prefs['tz']))
|
||||||
{
|
{
|
||||||
egw_time::setUserPrefs($prefs['tz'],$prefs['date_format'],$prefs['time_format']);
|
egw_time::setUserPrefs($prefs['tz'],$prefs['dateformat'],$prefs['timeformat']);
|
||||||
// set the old preference for compatibilty with old code
|
// set the old preference for compatibilty with old code
|
||||||
$GLOBALS['egw_info']['user']['preferences']['common']['tz_offset'] = egw_time::tz_offset_s()/3600;
|
$GLOBALS['egw_info']['user']['preferences']['common']['tz_offset'] = egw_time::tz_offset_s()/3600;
|
||||||
//echo "<p>".__METHOD__."() tz=$prefs[tz] --> tz_offset={$GLOBALS['egw_info']['user']['preferences']['common']['tz_offset']}</p>\n";
|
//echo "<p>".__METHOD__."() tz=$prefs[tz] --> tz_offset={$GLOBALS['egw_info']['user']['preferences']['common']['tz_offset']}</p>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user