This commit is contained in:
Marcin Szczepański 2020-01-23 21:41:29 +01:00
parent 4b87bf216c
commit a1948252fd
1 changed files with 5 additions and 1 deletions

View File

@ -338,7 +338,11 @@ export class GroupDetailsComponent implements OnInit, OnDestroy {
const temp = new Date(x['dateFrom']);
const tempstop = new Date(x['dateTo']);
x['startDate'] = '';
const hours = temp.getHours();
const hoursTemp = temp.getHours();
let hours = hoursTemp.toString();
if (hoursTemp < 10) {
hours = `0${hoursTemp}`;
}
const minutesTemp = temp.getMinutes();
let minutes = minutesTemp.toString();
if (minutesTemp < 10) {