Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: mosquito on February 28, 2009, 09:44:45 PM

Title: ntpdate and tz bootcode
Post by: mosquito 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
Title: Re: ntpdate and tz bootcode
Post by: Juanito 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...