From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 5066A1FF141 for ; Mon, 16 Mar 2026 11:11:19 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7267614665; Mon, 16 Mar 2026 11:11:29 +0100 (CET) Date: Mon, 16 Mar 2026 11:10:42 +0100 From: Stoiko Ivanov To: Stefan Mayr Subject: applied: [PATCH pmg-api v2 3/4] Fix #7175: replace timezone handling with systemd timedatectl Message-ID: <20260316111042.2eda9df1@rosa.proxmox.com> In-Reply-To: <20260125210151.1151-4-stefan@mayr-stefan.de> References: <20260125210151.1151-1-stefan@mayr-stefan.de> <20260125210151.1151-4-stefan@mayr-stefan.de> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 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: 1773655814871 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.984 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) RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.408 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.819 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.903 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. 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: SSCYTNNNOU5K5OAQR3NWIXPVGLNAJ4AM X-Message-ID-Hash: SSCYTNNNOU5K5OAQR3NWIXPVGLNAJ4AM X-MailFrom: s.ivanov@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 CC: Proxmox VE development discussion X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: applied the patch with an updated versioned dependency on libpve-common-perl Thanks! On Sun, 25 Jan 2026 22:01:50 +0100 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 > --- > src/PMG/API2/Nodes.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/src/PMG/API2/Nodes.pm b/src/PMG/API2/Nodes.pm > index 3479d64..66c4c3b 100644 > --- a/src/PMG/API2/Nodes.pm > +++ b/src/PMG/API2/Nodes.pm > @@ -662,7 +662,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> time(), > localtime =3D> $ltime, > }; > @@ -693,7 +693,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 undef; > },