전투시스템 종료일자 계산 수정
This commit is contained in:
@@ -116,6 +116,15 @@ public class BattleEventService {
|
|||||||
LocalDateTime start_dt = battleEventRequest.getEventStartDt();
|
LocalDateTime start_dt = battleEventRequest.getEventStartDt();
|
||||||
LocalDateTime end_dt = start_dt.plusHours(12);
|
LocalDateTime end_dt = start_dt.plusHours(12);
|
||||||
battleEventRequest.setEventEndDt(end_dt);
|
battleEventRequest.setEventEndDt(end_dt);
|
||||||
|
}else{
|
||||||
|
// 일자만 필요해서 UTC시간으로 변경되다보니 한국시간(+9)을 더해서 마지막시간으로 설정
|
||||||
|
LocalDateTime end_dt_kst = battleEventRequest.getEventEndDt()
|
||||||
|
.plusHours(9)
|
||||||
|
.withHour(23)
|
||||||
|
.withMinute(59)
|
||||||
|
.withSecond(59)
|
||||||
|
.withNano(0);
|
||||||
|
battleEventRequest.setEventEndDt(end_dt_kst);
|
||||||
}
|
}
|
||||||
battleEventRequest.setInstanceId(CommonConstants.BATTLE_INSTANCE_ID); //고정값으로 넣고 추후 맵정보가 늘어나면 선택하는 걸로
|
battleEventRequest.setInstanceId(CommonConstants.BATTLE_INSTANCE_ID); //고정값으로 넣고 추후 맵정보가 늘어나면 선택하는 걸로
|
||||||
|
|
||||||
@@ -132,15 +141,6 @@ public class BattleEventService {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 일자만 필요해서 UTC시간으로 변경되다보니 한국시간(+9)을 더해서 마지막시간으로 설정
|
|
||||||
LocalDateTime end_dt_kst = battleEventRequest.getEventEndDt()
|
|
||||||
.plusHours(9)
|
|
||||||
.withHour(23)
|
|
||||||
.withMinute(59)
|
|
||||||
.withSecond(59)
|
|
||||||
.withNano(0);
|
|
||||||
battleEventRequest.setEventEndDt(end_dt_kst);
|
|
||||||
|
|
||||||
int next_event_id = dynamodbBattleEventService.getEventId() + 1;
|
int next_event_id = dynamodbBattleEventService.getEventId() + 1;
|
||||||
battleEventRequest.setEventId(next_event_id);
|
battleEventRequest.setEventId(next_event_id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user