Skip to content

Commit 009cdeb

Browse files
committed
Fixing the rounding of hours, since it should always be rounded down and the total minutes up.
1 parent 321b4d2 commit 009cdeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-plannings-table/time-plannings-table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class TimePlanningsTableComponent implements OnInit, OnChanges {
211211
hours = Math.abs(hours);
212212
}
213213
const totalMinutes = Math.round(hours * 60)
214-
const hrs = Math.round(totalMinutes / 60);
214+
const hrs = Math.floor(totalMinutes / 60);
215215
let mins = totalMinutes % 60;
216216
if (isNegative) {
217217
// return '${padZero(hrs)}:${padZero(60 - mins)}';

0 commit comments

Comments
 (0)