X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id BCCF5DC01C6 for ; Sat, 19 Jul 2014 14:13:47 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id lj1so7053212pab.5 for ; Sat, 19 Jul 2014 07:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=KkfLRY9jUZxavYL1TyRUADJTgHdf/X3dMFsZcnyBRzA=; b=nI7HiLy+0w7nHaAypBt769fUV7v+njtvDB03m9YuKh7o5p08wmFnxTXMxDUOOns/vF 9q21utCdk23DsL/kN9mz4MBX/VyGjykfJQT8AV/Kwub29YmoOjeSkXImGgTcBHDwPbmz p9ZseCcXNq/OnNjflVWnPa79hj3Fv6KVZIPzDJYEPeNm8KOmmC7bc+kLRxVz3wLmDdMT U5nOsffrcEza9Hp9pUu4I+VkbqnJEywgx952KMbC4HlvlyNPr6OK9fYozmWkd7rIheyy Mpv6DVsHrDZV/KP/w9SPUWvF66ylLEF/7zHHVImrUnNjfd/1dSKMwyNYOcWhByUucsuS OzTA== X-Received: by 10.66.100.200 with SMTP id fa8mr12438049pab.23.1405779225879; Sat, 19 Jul 2014 07:13:45 -0700 (PDT) Received: from newbook ([50.0.224.39]) by mx.google.com with ESMTPSA id v9sm11618805pdp.88.2014.07.19.07.13.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jul 2014 07:13:44 -0700 (PDT) Date: Sat, 19 Jul 2014 07:13:41 -0700 From: Isaac Dunham To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org, busybox@busybox.net Subject: Re: [alpine-devel] hwclock restoring time wrong Message-ID: <20140719141340.GA2042@newbook> References: <20140716111243.GA2021@newbook> <20140716091505.21a8c1f7@ncopa-desktop.alpinelinux.org> 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-Disposition: inline In-Reply-To: <20140716091505.21a8c1f7@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) On Wed, Jul 16, 2014 at 09:15:05AM +0200, Natanael Copa wrote: > 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. It seems to be sane. Per my reading, hwclock thinks it's setting UTC, so it's a bug in busybox. At init the boot messages say it's using UTC. Thanks, Isaac Dunham --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---