From 418db8ac9907d47d2e6cf7b293bd3b7d2f7a8ebc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Aug 2022 15:51:19 +0200 Subject: Add years when grouping by stats by month --- client/src/app/+stats/video/video-stats.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.ts index 6e03da727..bfad4f823 100644 --- a/client/src/app/+stats/video/video-stats.component.ts +++ b/client/src/app/+stats/video/video-stats.component.ts @@ -528,7 +528,7 @@ export class VideoStatsComponent implements OnInit { const date = new Date(label) if (data.groupInterval.match(/ month?$/)) { - return date.toLocaleDateString([], { month: 'numeric' }) + return date.toLocaleDateString([], { year: '2-digit', month: 'numeric' }) } if (data.groupInterval.match(/ days?$/)) { -- cgit v1.2.3