Skip to content

Commit 58af6d1

Browse files
committed
Fix date dns
1 parent 78fda6d commit 58af6d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/plugins/filters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { intervalToDuration, formatDuration } from 'date-fns'
2+
import * as fns from 'date-fns'
33
import { parsePhoneNumber, isValidPhoneNumber } from 'libphonenumber-js'
44

55
Vue.filter('phoneNumber', (value: string): string => {
@@ -50,9 +50,9 @@ Vue.filter('billingPeriod', (value: string): string => {
5050
})
5151

5252
Vue.filter('humanizeTime', (value: string): string => {
53-
const durations = intervalToDuration({
53+
const durations = fns.intervalToDuration({
5454
start: new Date(),
5555
end: new Date(value),
5656
})
57-
return formatDuration(durations)
57+
return fns.formatDuration(durations)
5858
})

0 commit comments

Comments
 (0)