Skip to content

Commit

Permalink
fix(eb-app-ui): timezone while updating meeting schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Jun 17, 2024
1 parent a2c23a3 commit 5069f87
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
export let p: MeetingSchedule;
const timezoneOffset = new Date().getTimezoneOffset();
const defaultDuration = Number(p.schedule_attr.duration);
let duration = defaultDuration;
let date0 = toLocaleDate(p.schedule_attr.started_at);
Expand Down Expand Up @@ -123,6 +124,12 @@
// ---------------------------------------------------------------------------
function normalizeData() {
// Get the timezone offset (difference as minutes) of the client side. There
// is an issue here if the creating and updating timezones are different and
// selected start time is in different days for these two timezones.
// Skip it, dont fix.
p.schedule_attr.timezone_offset = `${timezoneOffset}`;
// if all day meeting, overwrite the start time and duration
if (allDay) {
time0 = "00:00";
Expand Down

0 comments on commit 5069f87

Please sign in to comment.