From owner-freebsd-current@freebsd.org Mon Aug 7 21:48:21 2017 Return-Path: Delivered-To: freebsd-current@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 C3DFCDCB1AD for ; Mon, 7 Aug 2017 21:48:21 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "alchemy.franken.de", Issuer "alchemy.franken.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D45B1BD for ; Mon, 7 Aug 2017 21:48:20 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.15.2/8.15.2/ALCHEMY.FRANKEN.DE) with ESMTPS id v77LmCPD091093 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 7 Aug 2017 23:48:12 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.15.2/8.15.2/Submit) id v77LmBmB091092; Mon, 7 Aug 2017 23:48:11 +0200 (CEST) (envelope-from marius) Date: Mon, 7 Aug 2017 23:48:11 +0200 From: Marius Strobl To: Boris Samorodov Cc: freebsd-current@FreeBSD.org Subject: Re: [tzsetup] can't set up local timezone if CMOS is set to UTC Message-ID: <20170807214811.GP20729@alchemy.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 21:48:21 -0000 On Mon, Aug 07, 2017 at 09:51:15AM +0300, Boris Samorodov wrote: > 07.08.2017 09:44, Boris Samorodov ?????: > > Hi Marius, All, > > > > Subj at today's amd64-HEAD. If I use command "sudo tzsetup" and > > choose YES (CMOS clock is set to UTC), the program just quits. > > Yea, my clocks are at UTC but I want to get time at local timezone. :-) > > > > I've found a recent commit to tzsetup, is it the cause? > > Hm. There is a log message at r322097: > --- > - Make the initial UTC dialog actually work by giving the relevant files > the necessary treatment and then exit when choosing "Yes" there instead > of moving on to the time zone menu regardless. > --- > > I must misunderstand something. > > So my question is: how to set up local time zone if CMOS is set to UTC? Yeah, I hadn't thought of the case where one would like to set up a configuration in which the RTC is using UTC but the timezone is not. So I've reverted the corresponding part of r322097 for now as I don't see an obvious way to give /etc/wall_cmos_clock appropriate treatment in all 3 relevant cases (UTC/UTC, !UTC/UTC and !UTC/!UTC regarding RTC/timezone) for all interactive and non-interactive ways of using tzsetup(8). Marius