Add years when grouping by stats by month
This commit is contained in:
parent
de61544582
commit
418db8ac99
1 changed files with 1 additions and 1 deletions
|
@ -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?$/)) {
|
||||
|
|
Loading…
Reference in a new issue