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 11D851FF17A for ; Tue, 25 Nov 2025 16:59:37 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B89FD1B495; Tue, 25 Nov 2025 16:59:46 +0100 (CET) From: Daniel Herzig To: pve-devel@lists.proxmox.com Date: Tue, 25 Nov 2025 16:59:11 +0100 Message-ID: <20251125155911.591123-1-d.herzig@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.514 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 KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 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.001 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.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] ["PATCH pve-manager"] fix #7081: api: render start- and endtime as timestamps X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" As reported on bugzilla [0], currently `pvenode task list` returns UNIX epochs for start- and endtime instead of timestamps for the default output format 'text', as opposed to `man 1 pvenode`[1]. This patch adds the timestamp renderer to the return array to address this discrepancy. [0] https://bugzilla.proxmox.com/show_bug.cgi?id=7081 [1] https://pve.proxmox.com/pve-docs/pvenode.1.html -- see `FORMAT_OPTIONS` Signed-off-by: Daniel Herzig --- + Thanks @Mira for the offline input! PVE/API2/Tasks.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm index d65663f6..21d8fe31 100644 --- a/PVE/API2/Tasks.pm +++ b/PVE/API2/Tasks.pm @@ -122,11 +122,11 @@ __PACKAGE__->register_method({ node => { type => 'string', title => 'Node' }, pid => { type => 'integer', title => 'PID' }, pstart => { type => 'integer' }, - starttime => { type => 'integer', title => 'Starttime' }, + starttime => { type => 'integer', title => 'Starttime', renderer => 'timestamp' }, type => { type => 'string', title => 'Type' }, id => { type => 'string', title => 'ID' }, user => { type => 'string', title => 'User' }, - endtime => { type => 'integer', optional => 1, title => 'Endtime' }, + endtime => { type => 'integer', optional => 1, title => 'Endtime', renderer => 'timestamp' }, status => { type => 'string', optional => 1, title => 'Status' }, }, }, -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel