element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Time Servers always +1hour for Sydney
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 665 subscribers
  • Views 808 views
  • Users 0 members are here
Related

Time Servers always +1hour for Sydney

wallarug
wallarug over 12 years ago

Any ideas??

 

I have set up the Raspberry Pi to use AU/Sydney time server but it is always wrong.

 

Could someone report this to a higher ranked person with magical powers that can fix this if I am not the only one experiening such issues.

  • Sign in to reply
  • Cancel
  • mcb1
    mcb1 over 12 years ago

    Fergus

    I've struck something similar with other devices.

    Could the daylight saving time be affecting it?

     

     

    This sort of explains what I mean.

    http://www.timeanddate.com/library/abbreviations/timezones/au/est.html

     

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to mcb1

    That would be the source of the problem BUT, the time servers should correct this when a device syncs.  So  I say this is a problem on a time server somewhere rather than on my Raspberry Pi.

     

    Any Thoughts?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to wallarug

    It's unlikely that an incorrect ntp server would go unnoticed for long, especially if you're already using pool.ntp.org, so unless your image has only a single server configured then ntp shouldn't be a problem.

    Even assuming the RPF are running their own single server setup with that (and only that) configured in the official image there's enough people using it that any problem would be quickly noticed and corrected.

     

    So I think it's more likely that there's something wrong locally on your Pi. It could be the tz database, or the setup of the on-boot clock setting script not being appropriate for AU/Sydney, but you need to do a bit more investigation to determine what's happening.

     

     

    The way all of this normally works is that the ntp servers run on UTC and that's what they report. Often the systems clock or RTC will also run on UTC. It's then up to your system to know how to translate that to your localtime.

    This translation is normally accomplished by copying an appropriate file from /usr/share/zoneinfo/ to /etc/localtime. This all depends on the timezone database & ntp server being accurate.

    However there may also be a global TZ environmnet variable being set which could possibly result in a double correction for DST.

     

    You can try a different ntp server by looking at http://www.pool.ntp.org/en/use.html and using one of those and try the following commands to see if they can show a problem:

     

    date --utc

     

    ntpq -p

     

    ntpdate -u -q 0.pool.ntp.org 1.pool.ntp.org

     

    then compare the results against whatever ntp server(s) you have configured (usually in /etc/ntp.conf). Generally you should use three or more ntp servers, that way ntp can identify and ignore a server that's handing out an incorrect time. The output of the ntpdate command above should show the output from several different servers and the offset reported should be more or less zero. The ntpq -p command will show what servers you're currently using and their details - if the offsets shown from both ntpdate and ntpq are all close, usually close to zero, then it's likely that the ntp servers are fine.

     

    You can get a new timezone database fromhttp://www.iana.org/time-zones if you think the one you're using is wrong for your location or DST settings. However you will need to compile it before you can use it. Details of how to do that manually can be found about halfway down this page http://www.linuxfromscratch.org/lfs/view/7.2/chapter06/glibc.html

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to Former Member

    I will look at this in more detail tomorrow. 

     

    I can tell you I am using a stock 2012-12-16 Raspbian image and configured the timezone through raspi-config. It has always been wrong even on images prior to this.  And BTW: My network time on all computers is right.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to wallarug

    Fergus, did you ever get to the bottom of this ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to Former Member

    nope. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube