From nobody Wed Jun 12 21:13:37 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vzyw36GHzz5NSQ3 for ; Wed, 12 Jun 2024 21:14:11 +0000 (UTC) (envelope-from freebsd-hackers@phoe.frmug.org) Received: from frmug.org (enterprise.frmug.org [213.36.253.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vzyw319VFz4Gr7 for ; Wed, 12 Jun 2024 21:14:11 +0000 (UTC) (envelope-from freebsd-hackers@phoe.frmug.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=frmug.org; spf=pass (mx1.freebsd.org: domain of freebsd-hackers@phoe.frmug.org designates 213.36.253.97 as permitted sender) smtp.mailfrom=freebsd-hackers@phoe.frmug.org Received: by frmug.org (Postfix, from userid 66) id 6B0B212C07C; Wed, 12 Jun 2024 23:14:03 +0200 (CEST) Received: by memo2.memo.frmug.org (Postfix, from userid 1001) id 244DB17A40; Wed, 12 Jun 2024 23:13:38 +0200 (CEST) Date: Wed, 12 Jun 2024 23:13:37 +0200 From: Bertrand Petit To: freebsd-hackers@freebsd.org Subject: Re: Removing "CMOS clock set to UTC" question Message-ID: <20240612211337.GZ2052@memo2.memo.frmug.org> References: <0.2.0-final-1718212027.814-0x75c1f0@qmda.emu.st> <26eaa45fec5b95b6a00948d45aaea927@bsdforge.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.60)[-0.598]; DMARC_POLICY_ALLOW(-0.50)[frmug.org,none]; R_SPF_ALLOW(-0.20)[+ip4:213.36.253.97]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:12322, ipnet:213.36.0.0/16, country:FR]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4Vzyw319VFz4Gr7 It is sad to see an option removed because "it confuse users". I agree it is broken so we need to fix it: we should make the option's effect obvious so that anyone can understand it. I porpose that in place of asking for a UTC or local selection we query "what time is it?" instead. Two choices would be presented as (live) timestamps, each simultaneously showing the effect of UTC/local time CMOS setting would have later on the host's wall clock. The task of the user is to select the option matching any external reference he sees fit. -- %!PS -- Bertrand Petit /D{def}def/E{exch}D/G{get}D/I{2 div}D/U{dup}D/L{roll}D/Y{setgray}D/N{newpath}D /O{N 0 0 moveto}D/P{pop}D/T{translate}D currentpagedevice/PageSize G U 0 G/w E D 1 G /h E D w I h I T 0 Y 1 setlinewidth 0 1 2 { P 120 rotate 2 4 w U mul h U mul add sqrt I 50 add {N 50 0 3 2 L 0 360 arc stroke}for}for/s{O true charpath pathbbox exch 4 -1 L E sub I 3 1 L sub I} D /l(bp)D 0.94 Y /Helvetica findfont 22 scalefont setfont l s P(x)s exch P T O l show showpage