X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id BC55ADC0093; Wed, 16 Jul 2014 07:15:08 +0000 (UTC) Date: Wed, 16 Jul 2014 09:15:05 +0200 From: Natanael Copa To: Isaac Dunham Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] hwclock restoring time wrong Message-ID: <20140716091505.21a8c1f7@ncopa-desktop.alpinelinux.org> In-Reply-To: <20140716111243.GA2021@newbook> References: <20140716111243.GA2021@newbook> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 16 Jul 2014 04:12:44 -0700 Isaac Dunham wrote: > Hello, > I've encountered a problem that seems to throw cron for a loop: > hwclock is saving the UTC time, but restoring it as if it were localtime. > > I determined this by setting the date manually, then running: > for d in stop start; do date; hwclock -r; service hwclock $d; date; hwclock -r; done > The status changes as follows: > > -manual localtime > -real UTC hwclock > hwclock stop > -manual localtime > -manual UTC hwclock > hwclock start > -localtime = manual UTC hwclock, but with the right timezone reported. > > I'm not sure if this is a bug in the init script or in busybox. > What would be a good way to check that? I think the hwclock 'service' has a related configuration in /etc/conf.d/hwclock. I don't know if the default config is sane though. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---