diff --git a/src/init.ts b/src/init.ts new file mode 100644 index 0000000..bbda1c3 --- /dev/null +++ b/src/init.ts @@ -0,0 +1,6 @@ +import dayjs from 'dayjs'; +import timezone from 'dayjs/plugin/timezone'; +import utc from 'dayjs/plugin/utc'; + +dayjs.extend(utc); +dayjs.extend(timezone); diff --git a/src/main.ts b/src/main.ts index 7114830..4fe2492 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,8 @@ import { NestFactory } from '@nestjs/core'; -import { AppModule } from './app.module'; -import cookieParser from 'cookie-parser'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; +import cookieParser from 'cookie-parser'; +import { AppModule } from './app.module'; +import './init'; async function bootstrap() { const app = await NestFactory.create(AppModule);