athis-ui/internal/node-utils/src/date.ts

13 lines
239 B
TypeScript
Raw Permalink Normal View History

2024-11-06 10:35:56 +08:00
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 };