diff --git a/src/utils/date.ts b/src/utils/date.ts index 64c98138d..b6051d739 100644 --- a/src/utils/date.ts +++ b/src/utils/date.ts @@ -1,32 +1,32 @@ import { RangeValue } from "@react-types/shared"; -import subDays from "date-fns/esm/subDays"; -import subMonths from "date-fns/esm/subMonths"; -import subWeeks from "date-fns/esm/subWeeks"; -import subYears from "date-fns/esm/subYears"; -import addDays from "date-fns/esm/addDays"; -import addMonths from "date-fns/esm/addMonths"; -import addYears from "date-fns/esm/addYears"; -import addWeeks from "date-fns/esm/addWeeks"; -import getDate from "date-fns/esm/getDate"; -import getHours from "date-fns/esm/getHours"; -import getMinutes from "date-fns/esm/getMinutes"; -import getMonth from "date-fns/esm/getMonth"; -import getSeconds from "date-fns/esm/getSeconds"; -import getYear from "date-fns/esm/getYear"; -import setDate from "date-fns/esm/setDate"; -import setDay from "date-fns/esm/setDay"; -import setHours from "date-fns/esm/setHours"; -import setMinutes from "date-fns/esm/setMinutes"; -import setSeconds from "date-fns/esm/setSeconds"; -import setMonth from "date-fns/esm/setMonth"; -import setYear from "date-fns/esm/setYear"; -import startOfMonth from "date-fns/esm/startOfMonth"; -import startOfDay from "date-fns/esm/startOfDay"; -import endOfMonth from "date-fns/esm/endOfMonth"; -import getDaysInMonth from "date-fns/esm/getDaysInMonth"; -import isSameMonth from "date-fns/esm/isSameMonth"; -import isSameDay from "date-fns/esm/isSameDay"; -import isWeekend from "date-fns/esm/isWeekend"; +import subDays from "date-fns/subDays"; +import subMonths from "date-fns/subMonths"; +import subWeeks from "date-fns/subWeeks"; +import subYears from "date-fns/subYears"; +import addDays from "date-fns/addDays"; +import addMonths from "date-fns/addMonths"; +import addYears from "date-fns/addYears"; +import addWeeks from "date-fns/addWeeks"; +import getDate from "date-fns/getDate"; +import getHours from "date-fns/getHours"; +import getMinutes from "date-fns/getMinutes"; +import getMonth from "date-fns/getMonth"; +import getSeconds from "date-fns/getSeconds"; +import getYear from "date-fns/getYear"; +import setDate from "date-fns/setDate"; +import setDay from "date-fns/setDay"; +import setHours from "date-fns/setHours"; +import setMinutes from "date-fns/setMinutes"; +import setSeconds from "date-fns/setSeconds"; +import setMonth from "date-fns/setMonth"; +import setYear from "date-fns/setYear"; +import startOfMonth from "date-fns/startOfMonth"; +import startOfDay from "date-fns/startOfDay"; +import endOfMonth from "date-fns/endOfMonth"; +import getDaysInMonth from "date-fns/getDaysInMonth"; +import isSameMonth from "date-fns/isSameMonth"; +import isSameDay from "date-fns/isSameDay"; +import isWeekend from "date-fns/isWeekend"; export const toUTCString = (date: Date) => { return date.toISOString().slice(0, 10);