From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id E9B0F1FF0AF for ; Fri, 20 Nov 2026 14:58:15 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id B09B321736; Fri, 20 Nov 2026 14:58:15 +0100 (CET) X-Originating-IP: 106.240.251.114 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=naver.com; s=s20171208; t=1794980455; bh=oqJJydJa2zdVPtNSxxpvjYikrO2qG+X1tcBwj47vkwE=; h=From:To:Subject:Date:Message-ID:From:Subject:Feedback-ID: X-Works-Security; b=qCFaFmdADj822Mq4DMKr9LiuLFenWttlD5+a5gYZo3wIoUFJrtpV5lmPO+T2AqoAa k482XloSdlNh/QP0r7S+CWeQls6J8FWRr6e3+1W733kKdMkTFElyH3Py/VGmeWy1mv wopeQocAW5JRyEt8PpjJ2xb2/hxy0FxAy8jnhaQLQTC1a2MJ6es8Qppo+iQ5k84zCP Yc9EYRidnmucDfDVO/iuAvO6wmR56BCwKNzBUegU/w02rbNpfHL1utqZohvKN81O9o XZZG7raYqvDG3Ld+qWJQXvI2sP5eiDo1KrZYZywhG7/dRc5i5bNKnnBTz+eycUvGFo TOzwDw1m+zAmg== X-Session-ID: fseHWWvLRvivbQM+r3mxBQ X-Originating-IP: 106.240.251.114 X-Works-Send-Opt: rPeTbzemjHmZFqITpzevKHmwjAJYKxtdFo2ZFqgmKNwkx0eFjAJYKg== X-Works-Smtp-Source: VqbdaxtlFqJZ+HmdFxg/+6E= From: Kim Soo To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox-backup] fix #8109: catalog: dump: print file mtime in UTC Date: Wed, 18 Nov 2026 14:40:52 +0900 Message-ID: <20261118054052.1497779-1-popododo0720@naver.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-MailFrom: popododo0720@naver.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation Message-ID-Hash: TBTFKVCVCQZYCZXNSZYF2X6QN4E44ZC2 X-Message-ID-Hash: TBTFKVCVCQZYCZXNSZYF2X6QN4E44ZC2 X-Mailman-Approved-At: Fri, 20 Nov 2026 14:58:13 +0100 CC: Kim Soo X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The catalog dump formatted the file mtime with strftime_local() but appended a literal 'Z', so the printed time was off by the local UTC offset while claiming to be UTC. Depending on the offset the date was wrong as well. Use epoch_to_rfc3339_utc() instead, which is also used for snapshot names, so the output is actually UTC and consistent with them. Signed-off-by: Kim Soo --- Tested with a file with mtime 2026-01-01T00:00:00Z: before: TZ=Asia/Seoul -> 2026-01-01T09:00:00Z TZ=UTC -> 2026-01-01T00:00:00Z after: TZ=Asia/Seoul -> 2026-01-01T00:00:00Z TZ=UTC -> 2026-01-01T00:00:00Z TZ=America/New_York -> 2026-01-01T00:00:00Z pbs-datastore/src/catalog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-datastore/src/catalog.rs b/pbs-datastore/src/catalog.rs index a2e79dea8..9f2fca881 100644 --- a/pbs-datastore/src/catalog.rs +++ b/pbs-datastore/src/catalog.rs @@ -745,7 +745,7 @@ impl CatalogReader { } CatalogEntryType::File => { let mut mtime_string = mtime.to_string(); - if let Ok(s) = proxmox_time::strftime_local("%FT%TZ", mtime) { + if let Ok(s) = proxmox_time::epoch_to_rfc3339_utc(mtime) { mtime_string = s; } -- 2.55.0