chore: remove date mixins

This commit is contained in:
Dominik Pschenitschni 2022-06-23 02:58:00 +02:00
parent 332acf012c
commit b0ee316a26
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
14 changed files with 43 additions and 24 deletions

View file

@ -188,6 +188,7 @@ import FilterPopup from '@/components/list/partials/filter-popup.vue'
import BaseButton from '@/components/base/BaseButton.vue'
import {colorIsDark} from '@/helpers/color/colorIsDark'
import {formatDate} from '@/helpers/time/formatDate'
export default defineComponent({
name: 'GanttChart',
@ -439,7 +440,7 @@ export default defineComponent({
formatMonthAndYear(year, month) {
month = month < 10 ? '0' + month : month
const date = new Date(`${year}-${month}-01`)
return this.format(date, 'MMMM, yyyy')
return formatDate(date, 'MMMM, yyyy')
},
},
})