Jürgen Beisert <jbe@...> writes:

> 
> 
> On Tuesday 17 December 2013 10:48:16 Dave Festing wrote:
> > On the 9thDec - date and hwclock changed from displaying the same time to
> > the hwclock being correct BUT date showing a time 13 hours ahead of my
> > current local time. Only on my mini2440s running either the 2012.12
> > Pengutronix BSP or the 2013.09 version
> >
> > Now, 13 hours is the difference between NZDT and UTC, but UTC should read
> > 13 hours behind NZDT ... if anything.
> >
> > I get around this little problem by adding a line in /etc/init.d/startup
> >
> >    hwclock --hctosys
> >
> > so that every time the machine reboots they are "synchronised".
> 
> Please use also the "--utc" parameter when running this command. The RTC time 
> is expected as UTC. Without this parameter the RTC uses local time.
> 
> Regards,
> Juergen
> 

OK, I have set my mini2440 hwclock to UTC.

  hwclock --show gives UTC time
  hwclock -u gives local time
  hwclock -l gives UTC time

When I set the hwclock on my netbook (Ubuntu) to UTC

  hwclock --show gives UTC time
  hwclock -u gives UTC time
  hwclock --localtime gives local time (there is no -l option)

Something here that I either fail to grasp or is wrong.

Fortunately, I can tell when "date" is 13 hours out by looking at my solar
PV log files. The sun only shines during the day here :)

If the original problem is fixed by setting the hwclock to UTC I'll be happy.

Cheers,
Dave



Reply via email to