From owner-freebsd-questions@freebsd.org Mon Oct 31 08:24:16 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6996FC27FDF for ; Mon, 31 Oct 2016 08:24:16 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F05E811D5 for ; Mon, 31 Oct 2016 08:24:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.121.123] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1c17t6-0006u7-Rm; Mon, 31 Oct 2016 09:24:12 +0100 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u9V8OBpm001888 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 31 Oct 2016 09:24:12 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u9V8OB9W001887; Mon, 31 Oct 2016 09:24:11 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 31 Oct 2016 09:24:11 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: return from DST did not worked Message-ID: <20161031082411.GA1843@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <20161030212001.GA4467@c720-r292778-amd64> <20161031010217.79915167@gumby.homeunix.com> <77d41784-51d5-de96-afc8-ad517ab2d2ee@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <77d41784-51d5-de96-afc8-ad517ab2d2ee@FreeBSD.org> X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.121.123 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2016 08:24:16 -0000 El día Monday, October 31, 2016 a las 07:51:58AM +0000, Matthew Seaman escribió: > Matthias is correct that having the BIOS clock a.k.a. the CMOS clock > running UTC is the preferred setting, but even if you don't the system > will still track daylight savings time changes for you. > > There's a cronjob in /etc/crontab that runs adjkerntz(8). That should > get run every half hour between midnight and 5.00am each night, which > will detect that it needs to update the CMOS clock on the two occasions > each year when the clocks change... > > If the OP doesn't leave his system running overnight, then that will not > happen, and the time will get set an hour out on reboot in the morning. > If this is what happened, then it should suffice to set the kernel clock > to the correct time (ie. turn off ntpd(8), use date(1) to get the clock > within a few seconds of correct, start ntpd(8) and leave it to synch > properly, then run 'adjkerntz -a') > > adjkerntz(8) also should get run as a daemon at system boot if your > system is set to use local CMOS time, which sets the kernel clock from > the CMOS clock at bootup, and sets the CMOS clock from the kernel clock > on shutdown. I have had localtime in CMOS, and not UTC. And due to the fact that the system (a netbook) was off betwwen 0 and 5 the job in /etc/crontab did not got fired. I changed it now to UTC in CMOS (running tzsetup(8) and will wait for the next DST... Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 1990, when the Russians stood in Germany at river Elbe, we have had peace. Today the NATO stands in the Baltic States, in Poland ..., and we have war all over the world. 1990, cuando los Rusos estaban en Alemania al río Elba, había paz. Hoy la OTAN está en los países bálticos, en Polonia, ..., y tenemos guerra por todo el mundo.