merge-upstream-5.0.1 #66

Merged
778a69cd merged 80 commits from merge-upstream-5.0.1 into main 2024-12-26 12:55:41 +01:00
Showing only changes of commit c0e906023c - Show all commits

View file

@ -716,7 +716,19 @@ const dateSettingsIsOpen = ref(false);
const saving = ref(false);
const setEventTimezoneToUserTimezoneIfUnset = () => {
if (userTimezone.value && event.value.options.timezone == null) {
event.value.options.timezone = userTimezone.value;
}
};
// usefull if the page is loaded from scratch
watch(loggedUser, setEventTimezoneToUserTimezoneIfUnset);
const initializeEvent = () => {
// usefull if the data is already cached
setEventTimezoneToUserTimezoneIfUnset();
const roundUpTo15Minutes = (time: Date) => {
time.setUTCMilliseconds(
Math.round(time.getUTCMilliseconds() / 1000) * 1000