mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Display date in local format
This commit is contained in:
@@ -203,7 +203,7 @@ export default class HistoryGraph extends Component {
|
|||||||
var fail = {x: e.date, y: e.failure};
|
var fail = {x: e.date, y: e.failure};
|
||||||
failData.datasets[0].data.push(success);
|
failData.datasets[0].data.push(success);
|
||||||
failData.datasets[1].data.push(fail);
|
failData.datasets[1].data.push(fail);
|
||||||
failData.labels.push(e.date);
|
failData.labels.push(new Date(e.date).toLocaleString([], {year: '2-digit', month:'2-digit', day:'2-digit'}));
|
||||||
})
|
})
|
||||||
console.log(failData);
|
console.log(failData);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user