Skip to content

Commit 4bf1cc1

Browse files
fix disabled end dates in date picker
1 parent e136d0a commit 4bf1cc1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ui/src/utils/date.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
import store from '@/store'
1818

1919
import dayjs from 'dayjs'
20+
import utc from 'dayjs/plugin/utc'
2021
import isToday from 'dayjs/plugin/isToday'
2122

23+
dayjs.extend(utc)
2224
dayjs.extend(isToday)
2325

2426
export function parseDayJsObject ({ value, format }) {

ui/src/views/plugins/quota/EditQuotaTariff.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export default {
159159
})
160160
},
161161
disabledEndDate (current) {
162-
return current < dayjs(this.resource.effectiveDate).startOf('day')
162+
return current < dayjs.utc(this.resource.effectiveDate).startOf('day')
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)