From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 2061F1FF141 for ; Mon, 16 Mar 2026 10:36:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3BE9E13843; Mon, 16 Mar 2026 10:36:30 +0100 (CET) Date: Mon, 16 Mar 2026 10:36:23 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= Subject: applied: [PATCH manager v2 1/4] Fix #7175: replace timezone handling with systemd timedatectl To: pve-devel@lists.proxmox.com, Stefan Mayr References: <20260125210151.1151-1-stefan@mayr-stefan.de> <20260125210151.1151-2-stefan@mayr-stefan.de> In-Reply-To: <20260125210151.1151-2-stefan@mayr-stefan.de> MIME-Version: 1.0 User-Agent: astroid/0.17.0 (https://github.com/astroidmail/astroid) Message-Id: <1773653683.dutrlxa5xj.astroid@yuna.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1773653746778 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.054 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_MSPIKE_H2 0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GM5PB64LRR7L3AA4DGTT256F2BDIZZX4 X-Message-ID-Hash: GM5PB64LRR7L3AA4DGTT256F2BDIZZX4 X-MailFrom: f.gruenbichler@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: with d/control bump On January 25, 2026 10:01 pm, Stefan Mayr wrote: > Usage of /etc/timezone is deprecated. The tzdata maintainers recommend > switching to timedatectl. >=20 > This changes the use of INotify to the Systemd module for timezone > settings. >=20 > Suggested-by: Fabian Gr=C3=BCnbichler > Suggested-by: Maximiliano Sandroval > Signed-off-by: Stefan Mayr > --- > PVE/API2/Nodes.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm > index 5bd6fe49..3de2b8c7 100644 > --- a/PVE/API2/Nodes.pm > +++ b/PVE/API2/Nodes.pm > @@ -1585,7 +1585,7 @@ __PACKAGE__->register_method({ > my $ctime =3D time(); > my $ltime =3D timegm_nocheck(localtime($ctime)); > my $res =3D { > - timezone =3D> PVE::INotify::read_file('timezone'), > + timezone =3D> PVE::Systemd::get_timezone(), > time =3D> $ctime, > localtime =3D> $ltime, > }; > @@ -1619,7 +1619,7 @@ __PACKAGE__->register_method({ > code =3D> sub { > my ($param) =3D @_; > =20 > - PVE::INotify::write_file('timezone', $param->{timezone}); > + PVE::Systemd::set_timezone($param->{timezone}); > =20 > return; > }, > --=20 > 2.34.1 >=20 >=20 >=20