From e14f404d098438fbd9ac15c0312d8cedd7073c4f Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:15:58 +0000 Subject: [PATCH] feat(nc-gui): new dayjs plugin --- packages/nc-gui/plugins/a.dayjs.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui/plugins/a.dayjs.ts b/packages/nc-gui/plugins/a.dayjs.ts index 3ce8c90899..5077e625da 100644 --- a/packages/nc-gui/plugins/a.dayjs.ts +++ b/packages/nc-gui/plugins/a.dayjs.ts @@ -8,6 +8,7 @@ import timezone from 'dayjs/plugin/timezone.js' import updateLocale from 'dayjs/plugin/updateLocale' import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' import isSameOrAfter from 'dayjs/plugin/isSameOrAfter' +import isBetween from 'dayjs/plugin/isBetween' import { defineNuxtPlugin } from '#imports' export default defineNuxtPlugin(() => { @@ -20,6 +21,7 @@ export default defineNuxtPlugin(() => { extend(updateLocale) extend(isSameOrBefore) extend(isSameOrAfter) + extend(isBetween) dayjs.updateLocale('en', { weekStart: 1, })