From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 265221FF09B for ; Wed, 25 Nov 2026 16:41:05 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 498EF216B6; Wed, 25 Nov 2026 16:41:04 +0100 (CET) Message-ID: <63e84fd1-a256-4df5-990d-2ea74cb6df31@proxmox.com> Date: Wed, 25 Nov 2026 16:40:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH proxmox-backup v2] fix #8109: catalog: dump: print file mtime in UTC To: Kim Soo , pbs-devel@lists.proxmox.com References: <20261118054052.1497779-1-popododo0720@naver.com> <20261118060658.1515616-1-popododo0720@naver.com> Content-Language: en-US, de-DE From: Christian Ebner In-Reply-To: <20261118060658.1515616-1-popododo0720@naver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795621259505 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.351 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: EUYPF7MJPZZ73GBRHNGMACNOVUQCDOUE X-Message-ID-Hash: EUYPF7MJPZZ73GBRHNGMACNOVUQCDOUE X-MailFrom: c.ebner@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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 11/20/26 2:58 PM, Kim Soo wrote: > 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. > > This affects both code paths of the dump: the regular catalog, and the > fallback for snapshots created with change detection mode 'metadata', > which have no catalog and are dumped from the metadata archives. > > Use epoch_to_rfc3339_utc() in both places instead, which is also used > for snapshot names, so the output is actually UTC and consistent with > them. > > Signed-off-by: Kim Soo > --- Thanks for the patch, version 2 looks good to me. Was pondering if we should align the behavior to the catalog shell's stat command output or pxar list, which show it as e.g. 2026-11-24 10:27:10, but since the timestamp already presented itself as being UTC it is better to keep this approach for the fix. Tested-by: Christian Ebner Reviewed-by: Christian Ebner