From a25cd43ddfdf91f38f0c21a118a1cd7ad7ed0a7a Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Thu, 18 Jan 2024 23:00:21 -0500 Subject: [PATCH] fix: start and end date for ooo entry (#13284) Co-authored-by: CarinaWolli Co-authored-by: sean-brydon Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com> --- .../my-account/out-of-office/index.tsx | 51 ++++++++++--------- .../loggedInViewer/outOfOffice.handler.ts | 6 ++- .../loggedInViewer/outOfOffice.schema.ts | 1 + .../form/date-range-picker/styles.css | 6 ++- 4 files changed, 36 insertions(+), 28 deletions(-) diff --git a/apps/web/pages/settings/my-account/out-of-office/index.tsx b/apps/web/pages/settings/my-account/out-of-office/index.tsx index be7a32f828..6238b0e0f4 100644 --- a/apps/web/pages/settings/my-account/out-of-office/index.tsx +++ b/apps/web/pages/settings/my-account/out-of-office/index.tsx @@ -26,6 +26,7 @@ import PageWrapper from "@components/PageWrapper"; export type BookingRedirectForm = { dateRange: { startDate: Date; endDate: Date }; + offset: number; toTeamUserId: number | null; }; @@ -47,6 +48,7 @@ const OutOfOfficeSection = () => { startDate: dateRange.startDate, endDate: dateRange.endDate, }, + offset: dayjs().utcOffset(), toTeamUserId: null, }, }); @@ -104,20 +106,17 @@ const OutOfOfficeSection = () => { )} -
+
{profileRedirect && ( -
+

{t("team_member")}