mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix stats X axis with old videos
This commit is contained in:
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
Block a user