Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-19 Thread James Tappin
On Sat, 16 May 2009 12:08:21 +0200 Børge Holen wrote: BH> Same thing that happens when one forget to compile in rtc? BH> Done that a few times. BH> BH> On 16. mai. 2009, at 09.47, Rogério Brito wrote: BH> BH> > Hi, Mark. BH> > BH> > On May 16 2009, Mark Purcell wrote: BH> >> + hwclock --

Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Børge Holen
Same thing that happens when one forget to compile in rtc? Done that a few times. On 16. mai. 2009, at 09.47, Rogério Brito wrote: Hi, Mark. On May 16 2009, Mark Purcell wrote: + hwclock --set --date 2009-5-16 I have always done something like that with my system, since openbsd's nnt

Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Julien BLACHE
Mark Purcell wrote: Hi, > +if `/sbin/hwclock | /bin/grep -q 1904`; then It's not necessarily 1904. Can be 1903 or 1933 too. You're better off checking the year isn't < 2000, for instance. JB. -- Julien BLACHE - Debian & GNU/Linux Developer - Public key available on

Re: hwclock: NVRAM flat battery sets date to 1904

2009-05-16 Thread Rogério Brito
Hi, Mark. On May 16 2009, Mark Purcell wrote: > + hwclock --set --date 2009-5-16 I have always done something like that with my system, since openbsd's nntpd doesn't seem to be able to update the time initially when it is too far from the current date. A more flexible solution (while still