mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-30 15:38:47 +00:00
Fix #1266: use a renderer when displaying Unix timestamps.
The timestamp is displayed read only in a large window, and not sortable, hence we use the human readable renderer.
This commit is contained in:
parent
3f6336553c
commit
4092576b1b
@ -80,6 +80,7 @@ Ext.define('PVE.window.Snapshot', {
|
|||||||
items.push({
|
items.push({
|
||||||
xtype: 'displayfield',
|
xtype: 'displayfield',
|
||||||
name: 'snaptime',
|
name: 'snaptime',
|
||||||
|
renderer: PVE.Utils.render_timestamp_human_readable,
|
||||||
fieldLabel: gettext('Timestamp')
|
fieldLabel: gettext('Timestamp')
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -199,7 +200,7 @@ Ext.define('PVE.window.Snapshot', {
|
|||||||
summarystore.resumeEvents();
|
summarystore.resumeEvents();
|
||||||
summarystore.fireEvent('refresh', summarystore);
|
summarystore.fireEvent('refresh', summarystore);
|
||||||
|
|
||||||
form.findField('snaptime').setValue(new Date(data.snaptime));
|
form.findField('snaptime').setValue(data.snaptime);
|
||||||
form.findField('description').setValue(data.description);
|
form.findField('description').setValue(data.description);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user