From: "alice" <alice@ayaya.dev>
To: <musl@lists.openwall.com>
Cc: "yubing (C)" <yubing12@huawei.com>,
"liudongxu" <liudongxu3@huawei.com>,
"wangyunhe (A)" <wangyunhe@huawei.com>,
"qiuguorui" <qiuguorui1@huawei.com>,
"Wanglieming (VRP SSP)" <wanglieming@huawei.com>
Subject: Re: [musl] Time zone has not updated after call tzset()
Date: Sat, 11 Feb 2023 15:10:40 +0100 [thread overview]
Message-ID: <CQFSLI2OLWBI.3K2TRYXR8IECT@sumire> (raw)
In-Reply-To: <f875523c2c094e2db64cbcd13aace527@huawei.com>
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.
next prev parent reply other threads:[~2023-02-11 14:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-11 6:53 zhoujingqiang (A)
2023-02-11 14:10 ` alice [this message]
2023-02-11 14:20 ` Rich Felker
2023-02-11 14:30 ` alice
2023-02-11 14:42 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CQFSLI2OLWBI.3K2TRYXR8IECT@sumire \
--to=alice@ayaya.dev \
--cc=liudongxu3@huawei.com \
--cc=musl@lists.openwall.com \
--cc=qiuguorui1@huawei.com \
--cc=wanglieming@huawei.com \
--cc=wangyunhe@huawei.com \
--cc=yubing12@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).