Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix stats X axis with old videos

Chocobozzzf9bbcd4ba25b
diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.ts
index 5bde5b01dc..8bd1ac1f27 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' })
}