API calls return dates in seconds where the JS Date() constructor
wants millisecond.
For the correct computation use render_timestamp_human_readable.
A similar fix was commited in
aaa89d0b880ea9ab97927872e64d4427bbe2232d
for VMs but Containers missed the fix.
items.push({
xtype: 'displayfield',
name: 'snaptime',
+ renderer: PVE.Utils.render_timestamp_human_readable,
fieldLabel: gettext('Timestamp')
});
}
summarystore.resumeEvents();
summarystore.fireEvent('refresh', summarystore);
- form.findField('snaptime').setValue(new Date(data.snaptime));
+ form.findField('snaptime').setValue(data.snaptime);
form.findField('description').setValue(data.description);
}
});