mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
time
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user