From b304bdfc3e9ca606fc215c63d2a3478ad27acff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 14 Aug 2019 11:24:41 +0200 Subject: [PATCH] MOBILE-1927 calendar: Fix timezone when adding events --- src/addon/calendar/pages/edit-event/edit-event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/calendar/pages/edit-event/edit-event.ts b/src/addon/calendar/pages/edit-event/edit-event.ts index f2808c627..2daaf90cf 100644 --- a/src/addon/calendar/pages/edit-event/edit-event.ts +++ b/src/addon/calendar/pages/edit-event/edit-event.ts @@ -423,7 +423,7 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy { submit(): void { // Validate data. const formData = this.eventForm.value, - timeStartDate = this.timeUtils.datetimeToDate(formData.timestart), + timeStartDate = new Date(formData.timestart), timeUntilDate = this.timeUtils.datetimeToDate(formData.timedurationuntil), timeDurationMinutes = parseInt(formData.timedurationminutes || '', 10); let error;