Add years when grouping by stats by month

This commit is contained in:
Chocobozzz 2022-08-11 15:51:19 +02:00
parent de61544582
commit 418db8ac99
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View 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?$/)) {