change stats date format to 2 digit year
parent
7cf71e43a5
commit
c1b9163b88
|
@ -98,7 +98,7 @@ export class StatisticOverviewComponent {
|
|||
const isoDate = wars[i].date.slice(0, 10);
|
||||
const dayDate = parseInt(isoDate.slice(8, 10)) + 1;
|
||||
const warDateString = (dayDate < 10 ? "0" + dayDate : dayDate) + '.'
|
||||
+ isoDate.slice(5, 7) + '.' + isoDate.slice(0, 4);
|
||||
+ isoDate.slice(5, 7) + '.' + isoDate.slice(2, 4);
|
||||
|
||||
pointsObj[0].series.push({
|
||||
name: warDateString,
|
||||
|
|
Loading…
Reference in New Issue