]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+stats/video/video-stats.component.ts
Use pvar() instead of SCSS variables
[github/Chocobozzz/PeerTube.git] / client / src / app / +stats / video / video-stats.component.ts
index 6e03da727aebd9d0ed27f3dc112f38d8afd01931..18312ec333ca4a050e2621c3e76e30a643049d5c 100644 (file)
@@ -175,7 +175,7 @@ export class VideoStatsComponent implements OnInit {
     this.statsService.getOverallStats({ videoId: this.video.uuid, startDate: this.statsStartDate, endDate: this.statsEndDate })
       .subscribe({
         next: res => {
-          this.countries = res.countries.slice(0, 10).map(c => ({
+          this.countries = res.countries.map(c => ({
             name: this.countryCodeToName(c.isoCode),
             viewers: c.viewers
           }))
@@ -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?$/)) {