13 lines
239 B
TypeScript
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 };
|