From f9bbcd4ba25bc2c699bb61494a511a74e50e7b34 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Oct 2023 14:43:50 +0200 Subject: [PATCH] Fix stats X axis with old videos --- 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 5bde5b01d..8bd1ac1f2 100644 --- a/client/src/app/+stats/video/video-stats.component.ts +++ b/client/src/app/+stats/video/video-stats.component.ts @@ -527,7 +527,7 @@ export class VideoStatsComponent implements OnInit { const date = new Date(label) - if (data.groupInterval.match(/ month?$/)) { + if (data.groupInterval.match(/ months?$/)) { return date.toLocaleDateString([], { year: '2-digit', month: 'numeric' }) }