Skip to content

Commit 3277205

Browse files
Harshithk951Harshith-Tech7romitg2
authored
fix: load dayjs utc plugin before timezone plugin (calcom#28314)
Day.js requires the 'utc' plugin to be loaded before the 'timezone' plugin to correctly apply timezone offsets during formatting. This fixes an issue where the Bookings Dashboard displayed UTC time but labeled it with the user's timezone. Fixes calcom#28193 Co-authored-by: Harshith Kumar <mharshithkumar6@gmail.com> Co-authored-by: Romit <85230081+romitg2@users.noreply.github.com>
1 parent d630556 commit 3277205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/dayjs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ dayjs.extend(isBetween);
1818
dayjs.extend(isToday);
1919
dayjs.extend(localizedFormat);
2020
dayjs.extend(relativeTime);
21+
dayjs.extend(utc);
2122
dayjs.extend(timeZone);
2223
dayjs.extend(toArray);
23-
dayjs.extend(utc);
2424
dayjs.extend(minmax);
2525
dayjs.extend(duration);
2626

0 commit comments

Comments
 (0)