Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71635 - CLOCK="UTC" not being honoured
Summary: CLOCK="UTC" not being honoured
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 72421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-17 21:15 UTC by P Nienaber
Modified: 2004-11-26 19:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description P Nienaber 2004-11-17 21:15:31 UTC
Hardware clock is set to UTC.  Verified this over several reboots.

lrwxrwxrwx  1 root root 34 Oct 19 13:10 /etc/localtime -> /usr/share/zoneinfo/Canada/Pacific

$ fgrep CLOCK= /etc/rc.conf
CLOCK="UTC"

Yet:

$ date
Thu Nov 18 05:06:29 PST 2004

(this is at Wed Nov 17 21:06:29 PST 2004)

I'm presently not running ntpclient or ntpd at any runlevel.

This was working fine until I rebooted.  Last reboot was ~17.5 days ago.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.7-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.7-gentoo-r14 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi aim alsa berkdb bitmap-fonts cddb cdr crypt cups dvd dvdr
f77 fam fbcon flac fortran gdbm gif gimpprint gpm gtk gtk2 imagemagick imap
imlib java javascript joystick jp2 jpeg kerberos lzw lzw-tiff mad mikmod
multilib mysql ncurses nptl nptlonly nvidia oggvorbis opengl oss pam pdflib perl
png python readline samba sdl slang ssl tcltk tcpd threads tiff truetype usb
userlocales xine xml xml2 xmms xpm xprint xrandr xv xvid zlib"
Comment 1 P Nienaber 2004-11-18 00:03:17 UTC
Stopping/starting /etc/init.d/clock seems to make it go back to normal (not that we're supposed to do that..).  Will try this across a few reboots when I have time.  I did, however, try a few boots to see if the problem was a one-time-occurrence and it definitely wasn't.
Comment 2 P Nienaber 2004-11-18 00:12:50 UTC
at boot:

 * Setting system clock to hardware clock [Local Time] ...                [ ok ]

after booting, as root:

box ~ # /etc/init.d/clock restart
 * Setting system clock to hardware clock [UTC] ...                       [ ok ]
Comment 3 SpanKY gentoo-dev 2004-11-19 22:47:37 UTC
i assume you're using baselayout-1.11.6-r1

if you're not, use it

then, stop setting CLOCK in rc.conf, use /etc/conf.d/clock
Comment 4 SpanKY gentoo-dev 2004-11-26 19:51:48 UTC
*** Bug 72421 has been marked as a duplicate of this bug. ***