File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ import { InBookingService } from './in-booking.service';
1515import { OpenBookingService } from './open-booking.service' ;
1616import { WaitingQueueService } from './waiting-queue.service' ;
1717
18- const OFFSET = 1000 * 60 * 60 * 9 ;
19-
2018@Injectable ( )
2119export class BookingService {
2220 private logger = new Logger ( BookingService . name ) ;
@@ -102,7 +100,8 @@ export class BookingService {
102100 async isAdmission ( eventId : number , sid : string ) : Promise < BookingAdmissionStatusDto > {
103101 // eventId를 받아서 해당 이벤트가 존재하는지 확인한다.
104102 const event = await this . eventService . findEvent ( { eventId } ) ;
105- const now = new Date ( Date . now ( ) + OFFSET ) ;
103+ const now = new Date ( ) ;
104+
106105 const isOpened = await this . openBookingService . isEventOpened ( eventId ) ;
107106
108107 if ( ! isOpened ) {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ async function bootstrap() {
1111 const app = await NestFactory . create ( AppModule , {
1212 logger : winstonLoggerConfig ,
1313 } ) ;
14+ process . env . TZ = 'Asia/Seoul' ;
1415 setupSwagger ( app ) ;
1516 app . enableCors ( {
1617 origin : '*' ,
You can’t perform that action at this time.
0 commit comments