Add years when grouping by stats by month
This commit is contained in:
parent
de61544582
commit
418db8ac99
|
@ -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 New Issue