Re: Filesystem date 7 hours ahead of system clock

From: Johan Kullstam (kullstam@ne.mediaone.net)
Date: Thu Jul 13 2000 - 16:55:23 EST


Rick Stevens <rstevens@publichost.com> writes:

> This is weird. When I touch a file, the timestamp on the file is
> 7 hours ahead of the system time (I'm in the US/Pacific time zone,
> which is UTC -0700):
>
> [root@srv01 /root]# date
> Thu Jul 13 13:57:03 PDT 2000
> [root@srv01 /root]# touch fred
> [root@srv01 /root]# ls -l fred
> -rw-r--r-- 1 root root 0 Jul 13 20:57 fred
>
> Both the system and hardware clocks are set to the current local time
> and correct timezone (PDT).

doctor it hurts when i...

set clocks to UTC. local time is an offset computed by libc. this
will fix your problem; this is the only sane way to run your clocks.

btw in case of dual boot to an OS with a brain-damaged idea of time,
just let the other OS lose. it can't help losing. it avoids
dual-boot daylight savings time double clock movement fun.

-- 
J o h a n  K u l l s t a m
[kullstam@ne.mediaone.net]
Don't Fear the Penguin!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:18 EST