aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-11 15:51:19 +0200
committerChocobozzz <me@florianbigard.com>2022-08-11 15:51:27 +0200
commit418db8ac9907d47d2e6cf7b293bd3b7d2f7a8ebc (patch)
treee59189a53f977bbef955f56a015cdb047361e3b3 /client
parentde61544582726713c965d3369902f4a464f72e20 (diff)
downloadPeerTube-418db8ac9907d47d2e6cf7b293bd3b7d2f7a8ebc.tar.gz
PeerTube-418db8ac9907d47d2e6cf7b293bd3b7d2f7a8ebc.tar.zst
PeerTube-418db8ac9907d47d2e6cf7b293bd3b7d2f7a8ebc.zip
Add years when grouping by stats by month
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+stats/video/video-stats.component.ts2
1 files changed, 1 insertions, 1 deletions
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 {
528 const date = new Date(label) 528 const date = new Date(label)
529 529
530 if (data.groupInterval.match(/ month?$/)) { 530 if (data.groupInterval.match(/ month?$/)) {
531 return date.toLocaleDateString([], { month: 'numeric' }) 531 return date.toLocaleDateString([], { year: '2-digit', month: 'numeric' })
532 } 532 }
533 533
534 if (data.groupInterval.match(/ days?$/)) { 534 if (data.groupInterval.match(/ days?$/)) {