tfoerste@nhh221 ~ $ last | head tfoerste :0 Sun Jan 4 13:34 still logged in reboot system boot 2.4.23-grsec-1.9 Sun Jan 4 14:33 (00:-55) tfoerste :0 Sun Jan 4 12:20 - 12:30 (00:10) reboot system boot 2.4.23-grsec-1.9 Sun Jan 4 13:18 (00:-47) tfoerste :0 Sun Jan 4 10:43 - 11:15 (00:31) tfoerste :0 Sat Jan 3 15:45 - 16:28 (00:42) root vc/1 Sat Jan 3 15:45 - 15:45 (00:00) tfoerste :0 Sat Jan 3 11:26 - 12:27 (01:00) reboot system boot 2.4.23-grsec-1.9 Sat Jan 3 12:25 (22:49) tfoerste :0 Fri Jan 2 19:26 - 20:13 (00:47) tfoerste@nhh221 ~ $ cat /etc/timezone Europe/Berlintfoerste@nhh221 ~ Seems that te time zone is not recognized when calculating the time in "(...)", isn't ? Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23-grsec-1.9.13) ================================================================= System uname: 2.4.23-grsec-1.9.13 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X apache2 apm arts avi berkdb crypt cups encode esd foomaticdb gd gdbm gif gpm gtk2 imlib innodb java jbig jpeg kde lcms libg++ libwww mad mbox mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline sdl slang slp snmp spell ssl svga tcltk tcpd tiff truetype usb wmf x86 xml2 xv zlib linguas_de"
does `date` show the right time ?
Yes, `date` und `date -u` workds as expected
shouldn't it be that /etc/localtime is a symlink to /usr/share/zoneinfo/some/where? what is this /etc/timezone file you have?
# ls -l /etc/timezone -rw-r--r-- 1 root root 14 Mar 27 16:45 /etc/timezone # cat /etc/timezone Europe/Berlin # ls -l /etc/localtime lrwxrwxrwx 1 root root 33 Mar 21 11:47 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin # strings /etc/localtime TZif CEST CEMT nhh221 /etc
Seems, that the log entry only for reboot does not consider the local time zone: tfoerste@nhh221 ~ $ last | head -n 20 tfoerste pts/1 Wed Oct 13 16:03 still logged in tfoerste pts/0 Wed Oct 13 16:03 still logged in tfoerste :0 Wed Oct 13 16:03 still logged in reboot system boot 2.6.8-gentoo-r8 Wed Oct 13 17:58 (00:-40) root vc/2 Wed Oct 13 15:54 - down (00:03) root pts/0 Wed Oct 13 15:50 - 15:50 (00:00) root pts/0 Wed Oct 13 15:49 - 15:49 (00:00) root pts/0 Wed Oct 13 15:49 - 15:49 (00:00) root vc/1 Wed Oct 13 15:46 - 15:57 (00:11) reboot system boot 2.6.8-gentoo-r8 Wed Oct 13 17:46 (-1:-48) root vc/1 Wed Oct 13 15:42 - down (00:02) tfoerste pts/1 Wed Oct 13 15:39 - 15:42 (00:02) tfoerste pts/0 Wed Oct 13 15:39 - down (00:05) tfoerste :0 Wed Oct 13 15:39 - 15:42 (00:02) tfoerste pts/1 Wed Oct 13 15:37 - 15:39 (00:01) tfoerste pts/0 Wed Oct 13 15:37 - 15:39 (00:01) tfoerste :0 Wed Oct 13 15:37 - 15:39 (00:02) reboot system boot 2.6.8-gentoo-r8 Wed Oct 13 17:36 (-1:-51) tfoerste pts/3 Wed Oct 13 15:34 - 15:35 (00:01) tfoerste pts/2 Wed Oct 13 15:32 - 15:35 (00:03) tfoerste@nhh221 ~ $ date -u Wed Oct 13 15:18:45 UTC 2004 tfoerste@nhh221 ~ $ uptime 17:18:47 up 1:20, 3 users, load average: 3.16, 3.31, 3.24 tfoerste@nhh221 ~ $ date Wed Oct 13 17:18:49 CEST 2004 tfoerste@nhh221 ~ $
seems to depend an bug 68133 ?
resolved with 68133