WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ntpdate and tz bootcode  (Read 2882 times)

Offline mosquito

  • Newbie
  • *
  • Posts: 4
ntpdate and tz bootcode
« on: February 28, 2009, 09:44:45 PM »
Hi there,
I have built ntpdate so that I can synchonise the clock with a time server.  I live in New Zealand, which is currently 13 hours ahead of UTC.  I *thought* all I had to do was boot with code tz=UTC+13 and then run ntpdate to grab the time. 

However, this sets the clock to 13 hours behind UTC.  After much mucking around (e.g. trying tz=GMT+13, setting the hardware clock to UTC or localtime, using bootcode 'noutc') the only way I could get ntpdate to play nicely was to boot with tz=UTC-13.

While this works, it's hardly intuitive...   Am I missing something obvious? How is the tz bootcode supposed to be used?

Cheers
Andrew

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: ntpdate and tz bootcode
« Reply #1 on: February 28, 2009, 10:23:12 PM »
No, you're not missing anything - those strange unix types set things up like this.

Where you would normally use something like UTC+4, you need to use UTC-4...