[pve-devel] ["PATCH pve-manager"] fix #7081: api: render start- and endtime as timestamps
Daniel Herzig
d.herzig at proxmox.com
Tue Nov 25 16:59:11 CET 2025
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 <d.herzig at proxmox.com>
---
+ 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
More information about the pve-devel
mailing list