Browse Source

feat: update datetimepicker start day

Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: frankmagoba <franklinmagoba4@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
pull/6887/head
gitstart 1 year ago
parent
commit
683cb68f42
  1. 6
      packages/nc-gui/components/cell/DateTimePicker.vue

6
packages/nc-gui/components/cell/DateTimePicker.vue

@ -1,6 +1,7 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import { isSystemColumn } from 'nocodb-sdk'
import updateLocale from 'dayjs/plugin/updateLocale'
import {
ActiveCellInj,
CellClickHookInj,
@ -25,8 +26,11 @@ interface Props {
}
const { modelValue, isPk, isUpdatedFromCopyNPaste } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
dayjs.extend(updateLocale)
dayjs.updateLocale('en', {
weekStart: 1,
})
const { isMssql, isXcdbBase } = useBase()

Loading…
Cancel
Save