change stats date format to 2 digit year

pull/10/head
Florian Hartwich 2017-09-24 12:50:01 +02:00
parent 7cf71e43a5
commit c1b9163b88
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class StatisticOverviewComponent {
const isoDate = wars[i].date.slice(0, 10); const isoDate = wars[i].date.slice(0, 10);
const dayDate = parseInt(isoDate.slice(8, 10)) + 1; const dayDate = parseInt(isoDate.slice(8, 10)) + 1;
const warDateString = (dayDate < 10 ? "0" + dayDate : dayDate) + '.' 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({ pointsObj[0].series.push({
name: warDateString, name: warDateString,