Zend Framework

NTP / SNTP results vary by 103 seconds

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.10.3
  • Component/s: Zend_TimeSync
  • Labels:
    None

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:

NTP
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
)
SNTP
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
)

Activity

Hide
Thomas Weidner added a comment -

Implemented V3 calculation with r21481

Show
Thomas Weidner added a comment - Implemented V3 calculation with r21481

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: