From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6778 invoked from network); 11 Feb 2023 14:10:56 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 11 Feb 2023 14:10:56 -0000 Received: (qmail 27748 invoked by uid 550); 11 Feb 2023 14:10:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 27716 invoked from network); 11 Feb 2023 14:10:53 -0000 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1676124641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tlIdFgxe6M4PU6ABCa1+Ob0Inxb4Bh/zpMgxe/rr9+c=; b=C33LfWI67ytWizgBWlQALbynezAzcqmBjLOo2pBBR3UWp80p2NZMtfQTHYXvdJ2cSUA6DE qsJX0XGaY5CV77XnZGp6h9xuOqRsaGEcL8Tacjmh7jYOwmW6WPJt2tJ0PvEjej9Or0pC/6 +ireFrsG/N7lFrz2sM99BXMRLGiuBNQ= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 11 Feb 2023 15:10:40 +0100 Message-Id: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" To: Cc: "yubing (C)" , "liudongxu" , "wangyunhe (A)" , "qiuguorui" , "Wanglieming (VRP SSP)" References: In-Reply-To: X-Migadu-Flow: FLOW_OUT Subject: Re: [musl] Time zone has not updated after call tzset() On Sat Feb 11, 2023 at 7:53 AM CET, zhoujingqiang (A) wrote: > Hello, > > Normally, /etc/localtime is a soft link to a file that stores time zone > information. > > Without setting the TZ environment variable, I change the time zone by > changing the file linked to /etc/localtime. After calling tzset(), I find= that > the time zone does not change. The test code is as follows: musl does not support changing the timezone while running. see https://www.openwall.com/lists/musl/2017/06/09/9 , for a response to an identical bug report tl;dr without semantics: you have to restart a running process to get a new timezone.