mirror of https://github.com/Chocobozzz/PeerTube
Fix stats X axis with old videos
parent
40a6dcb632
commit
f9bbcd4ba2
|
@ -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' })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue