MOBILE-1927 calendar: Fix timezone when adding events

main
Pau Ferrer Ocaña 2019-08-14 11:24:41 +02:00
parent dcec83759f
commit b304bdfc3e
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy {
submit(): void { submit(): void {
// Validate data. // Validate data.
const formData = this.eventForm.value, const formData = this.eventForm.value,
timeStartDate = this.timeUtils.datetimeToDate(formData.timestart), timeStartDate = new Date(formData.timestart),
timeUntilDate = this.timeUtils.datetimeToDate(formData.timedurationuntil), timeUntilDate = this.timeUtils.datetimeToDate(formData.timedurationuntil),
timeDurationMinutes = parseInt(formData.timedurationminutes || '', 10); timeDurationMinutes = parseInt(formData.timedurationminutes || '', 10);
let error; let error;