set default time

This commit is contained in:
Peter Maquiran
2023-02-13 18:50:31 +01:00
parent 1f5abcaa7a
commit b84161765e
9 changed files with 72 additions and 18 deletions
@@ -164,7 +164,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
setEndDate() {
if(!this.postData.EndDate) {
this.postData.EndDate = this.postData.StartDate;
this.postData.EndDate = this.roundTimeQuarterHourPlus15(this.postData.StartDate);
}
}
@@ -463,6 +463,13 @@ export class DocumentSetUpMeetingPage implements OnInit {
return date
}
roundTimeQuarterHourPlus15(date:Date) {
const _date = new Date(date);
const minutes = _date .getMinutes();
_date .setMinutes(minutes + 15)
return _date
}
checkRoleInArray(str) {
return this._eventService.calendarRole.includes(str);
}