1
0
Fork 0

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

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