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
1 changed files with 1 additions and 0 deletions

View File

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