Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 449dee56 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix appointment availability time zone from caldav



And add a fallback as well.

Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent 64c300de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ export default class AppointmentConfig {
		if (scheduleInbox && scheduleInbox.availability) {
			const converted = vavailabilityToSlots(scheduleInbox.availability)
			slots = converted.slots
			timezoneId = slots.timezoneId
			timezoneId = converted.timezoneId ?? timezoneId
		} else {
			// Set default availability to Mo-Fr 9-5
			const tsAtTime = (hours, minutes) => Math.round((new Date()).setHours(hours, minutes, 0, 0) / 1000);