[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hwclock: NVRAM flat battery sets date to 1904



Mark Purcell <msp@debian.org> 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 - <jblache@debian.org> 
 
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 


Reply to: