athis-ui/internal/node-utils/src/date.ts
2024-11-06 10:35:56 +08:00

13 lines
239 B
TypeScript

import dayjs from 'dayjs';
import timezone from 'dayjs/plugin/timezone';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
dayjs.extend(timezone);
dayjs.tz.setDefault('Asia/Shanghai');
const dateUtil = dayjs;
export { dateUtil };