Date: Tue, 8 Aug 2017 14:12:34 +0300 From: Boris Samorodov <bsam@passap.ru> To: Marius Strobl <marius@freebsd.org> Cc: freebsd-current@FreeBSD.org Subject: Re: [tzsetup] can't set up local timezone if CMOS is set to UTC Message-ID: <caee2227-70cd-da52-52fc-a1e5d8df166c@passap.ru> In-Reply-To: <20170807214811.GP20729@alchemy.franken.de> References: <b8836d4d-302c-5b75-1c71-30f2cb941e24@passap.ru> <b4533890-5e28-8ee2-f3c6-9cc3459c7b17@passap.ru> <20170807214811.GP20729@alchemy.franken.de>
next in thread | previous in thread | raw e-mail | index | archive | help
08.08.2017 00:48, Marius Strobl пишет: > 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. I've used this configuration, well, almost forever. ;-) As Kevin has already said and my habit is to set a unix machine CMOS to UTC. > So I've reverted the corresponding part of r322097 for now Confirmed, tzsetup works as expected (at least for me). Thank you for quick fix and response. > 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). -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?caee2227-70cd-da52-52fc-a1e5d8df166c>