From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1C293858404; Wed, 10 Apr 2024 00:26:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1C293858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712708809; bh=wV9EY+Kp71HEeqI8lUlJdWrUADjzdN9H655/ugAuoSE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=m+7jYJvAWh89/Pon4tlIhHpsObjGOMatNEhqUyM0r/IsPhdzrNKFXUYrgcyEg7g0c nitkZ7xzTwVX8lFnvrHuVOzD3hdof90wC/6D7SugpYqeWN8lr52AlGEc3qOuiFyo/z kSjCKKBcko6PwMBT85jmYR3nDa5t8RTuh79Q35CQ= From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114645] std::chrono::current_zone ignores $TZ on Linux Date: Wed, 10 Apr 2024 00:26:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114645 --- Comment #21 from Harald van Dijk --- (In reply to Jonathan Wakely from comment #20) > (In reply to Harald van Dijk from comment #18) > > (In reply to Jonathan Wakely from comment #16) > > > ... incorrectly though? > >=20 > > Given that you have expressed your view that *any* attempt at using TZ = is > > inherently incorrect, I am not surprised that you view libc++'s attempt= as > > incorrect. :) >=20 > That's not what I mean. You wrote in which you referenced in comment #1: "And in any case, I don't think we want= to depend on $TZ. That's not the intended design of the std::chrono API." Earl= ier in that thread, you had written in : "In any cas= e, the C++ standard requires that current_zone() refers to the computer's zone, not just the current process' TZ setting:" It's fine if you changed your mind since then, but it is hard for me to read this as any other way than that any attempt at using TZ is inherently incorrect.=