The timestamp is displayed read only in a large window, and not sortable,
hence we use the human readable renderer.
items.push({
xtype: 'displayfield',
name: 'snaptime',
+ renderer: PVE.Utils.render_timestamp_human_readable,
fieldLabel: gettext('Timestamp')
});
} else {
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);
}
});