This commit is contained in:
Peter Maquiran
2023-02-06 17:54:06 +01:00
parent 18b647e702
commit 3fd2803a3b
8 changed files with 21 additions and 19 deletions
@@ -136,7 +136,7 @@ export class BookMeetingModalPage implements OnInit {
this.postData.CalendarName = "Oficial";
this.dateControlStart = new FormControl(moment(this.roundTimeQuarterHour()));
this.dateControlEnd = new FormControl(moment(new Date(this.roundTimeQuarterHour() + 15 * 60000)));
this.dateControlEnd = new FormControl(moment(new Date(this.roundTimeQuarterHour())));
this.postData.Category = 'Reunião'
@@ -498,7 +498,7 @@ export class BookMeetingModalPage implements OnInit {
}
roundTimeQuarterHour(timeToReturn?) {
roundTimeQuarterHour(timeToReturn = new Date()) {
let date = timeToReturn || new Date();
const minutes = date.getMinutes();
date.setSeconds(0);