sccp_manager icon indicating copy to clipboard operation
sccp_manager copied to clipboard

Timezones issue

Open evazzoler opened this issue 3 years ago • 0 comments

It seems the only timezones working are the russians. "Rome" is missing and causes a warning on the "SCCP Info" page. I added it on the extconfigs.class.php as:

'Europe/Rome' => array('offset' => '60', 'daylight' => 'Daylight'),

but it generates incorrect entry in the SEP.cnf.xml file. Then I tried:

'Europe/Rome' => array('offset' => '60', 'daylight' => 'Daylight', 'cisco_code' => 'W. Europe Standard'),

because W. Europe Standard is the correct Cisco Timezone, but in the XML i find:

<timeZone>W. Europe Standard/Daylight</timeZone> instead: <timeZone>W. Europe Standard/Daylight Time</timeZone>

and this causes the time is shifted by half an hour... It seems that the missing "Time" word is doing a mess. :-O The solution was a workaround and was to leave blank the Daylight value of the array (because it is substituted in a wrong way) and include the correct daylight parameter ("Daylight Time") directly in the timezone.

'Europe/Rome' => array('offset' => '60', 'daylight' => '', 'cisco_code' => 'W. Europe Standard/Daylight Time'),

That works good but it remains a workaround.

evazzoler avatar Mar 12 '21 11:03 evazzoler