Issues

ZF-8570: NTP / SNTP results vary by 103 seconds

Issue Type: Bug Created: 2009-12-17T08:15:40.000+0000 Last Updated: 2010-03-13T14:10:27.000+0000 Status: Resolved Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Jason Brumwell (baxter) Assignee: Thomas Weidner (thomas) Tags: - Zend_TimeSync

Related issues: Attachments:

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:

<pre class="highlight">
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
)



<pre class="highlight">
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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts