ZF-8570: NTP / SNTP results vary by 103 seconds
Description
Hi,
I'm using the time server at time.nrc.ca to sync our time. It implements both sntp and ntp protocals. Calling the ntp method results in an offset of 103 seconds while calling it via sntp results in 0. Below is the output from both calls:
Zend_Date Object
(
[_locale:private] => en_CA
[_fractional:private] => 0
[_precision:private] => 3
[_unixTimestamp:private] => 1261066537
[_timezone:private] => America/Toronto
[_offset:private] => 18000
[_syncronised:private] => 103
[_dst:protected] => 1
)
Array
(
[leap] => 0 - no warning
[version] => 3
[mode] => symetric passive
[ntpid] => 49.51.50.0
[stratum] => secondary reference
[rootdelay] => 0
[rootdelayfrac] => 0
[rootdispersion] => 0
[rootdispersionfrac] => 0
[roundtrip] => -103
[offset] => 103.000000032
)
Zend_Date Object
(
[_locale:private] => en_CA
[_fractional:private] => 0
[_precision:private] => 3
[_unixTimestamp:private] => 1261066498
[_timezone:private] => America/Toronto
[_offset:private] => 18000
[_syncronised:private] => 0
[_dst:protected] => 1
)
Array
(
[offset] => 0
)
Comments
Posted by Thomas Weidner (thomas) on 2010-03-13T14:10:25.000+0000
Implemented V3 calculation with r21481