Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.6.0
-
Component/s: Zend_TimeSync
-
Labels:None
Description
I used the timeserver "ntp://ntps1-1.rz.uni-osnabrueck.de" for some tests and it worked fine, but today I got the following error:
Notice: Undefined index: offset in [...]Zend\Date.php on line 273
The result is a valid instance of the Zend_TimeSync_Protocol, but the getInfo() method returns an empty array.
The code:
...
$serverlist = array(
'ntp://ntps1-1.rz.uni-osnabrueck.de',
'ntp://swisstime.ethz.ch',
);
$server = new Zend_TimeSync($serverlist);
$servers = $server->getIterator();
Zend_Date::setOptions(array('timesync' => $servers[0]));
...
Are you sure the timeserver works ?
Can you dump us the $server object ?