ui: subscription: usage chart: render date as ISO 8601

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-10 11:46:22 +01:00
parent 0a4dfd63c9
commit 984ac33d5c

View File

@ -56,6 +56,7 @@ Ext.define('PBS.widget.UsageChart', {
renderer: function(tooltip, record, ctx) {
if (!record || !record.data) return;
let date = new Date(record.data.time);
date = Ext.Date.format(date, 'c');
let value = (100*record.data.val).toFixed(2);
tooltip.setHtml(
`${value} %<br />