Browse Source

운항 스케줄 총 비행시간 수정

ctrlDraw
kimjh(김장현) 2 years ago
parent
commit
a473e81a5f
  1. 5
      src/components/basis/flight/schedule/FlightScheduleGrid.js

5
src/components/basis/flight/schedule/FlightScheduleGrid.js

@ -95,7 +95,10 @@ function FlightScheduleGrid() {
const endDate = moment(row.schFltEndDt);
const startDate = moment(row.schFltStDt);
const hours = moment.duration(endDate.diff(startDate)).asHours();
const hours = Math.floor(
moment.duration(endDate.diff(startDate)).asHours()
);
const minute =
moment.duration(endDate.diff(startDate)).asMinutes() % 60;

Loading…
Cancel
Save