]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+stats/video/video-stats.component.ts
Added filter to sort videos by name (alphabetical order)
[github/Chocobozzz/PeerTube.git] / client / src / app / +stats / video / video-stats.component.ts
index 6e03da727aebd9d0ed27f3dc112f38d8afd01931..bfad4f8236ee4dafa10fc2e9219bbca12342b33b 100644 (file)
@@ -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?$/)) {