MOBILE-1927 calendar: Fix timezone when adding events
parent
dcec83759f
commit
b304bdfc3e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue