Skip to content

Scheduling infrastructure for absolutely everyone.

fix: delegated credentials timezone outlook (#23700)

Morganc6c17ac388fe
diff --git a/apps/api/v2/package.json b/apps/api/v2/package.json
index 95c96ba7bce..800efd0ecbb 100644
--- a/apps/api/v2/package.json
+++ b/apps/api/v2/package.json
@@ -38,7 +38,7 @@
"@axiomhq/winston": "^1.2.0",
"@calcom/platform-constants": "*",
"@calcom/platform-enums": "*",
- "@calcom/platform-libraries": "npm:@calcom/[email protected]",
+ "@calcom/platform-libraries": "npm:@calcom/[email protected]",
"@calcom/platform-types": "*",
"@calcom/platform-utils": "*",
"@calcom/prisma": "*",
diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.ts
index 84c35b37737..62219f87692 100644
--- a/packages/app-store/office365calendar/lib/CalendarService.ts
+++ b/packages/app-store/office365calendar/lib/CalendarService.ts
@@ -691,10 +691,13 @@ export default class Office365CalendarService implements Calendar {
const response = await this.fetcher(`${await this.getUserEndpoint()}/mailboxSettings/timeZone`);
const timezone = await handleErrorsJson<string>(response);
- if (!timezone) {
- this.log.warn("No timezone found in mailbox settings, defaulting to Europe/London");
+ if (!timezone || typeof timezone !== "string") {
+ this.log.warn("No timezone found in outlook mailbox settings, defaulting to Europe/London", {
+ timezone,
+ });
return "Europe/London";
}
+ this.log.info("timezone found in outlook mailbox settings", { timezone });
return timezone;
} catch (error) {
diff --git a/yarn.lock b/yarn.lock
index a3e30097517..75ad0a6ec50 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2708,7 +2708,7 @@ __metadata:
"@axiomhq/winston": ^1.2.0
"@calcom/platform-constants": "*"
"@calcom/platform-enums": "*"
- "@calcom/platform-libraries": "npm:@calcom/[email protected]"
+ "@calcom/platform-libraries": "npm:@calcom/[email protected]"
"@calcom/platform-types": "*"
"@calcom/platform-utils": "*"
"@calcom/prisma": "*"
@@ -3767,13 +3767,13 @@ __metadata:
languageName: unknown
linkType: soft
-"@calcom/platform-libraries@npm:@calcom/[email protected]":
- version: 0.0.347
- resolution: "@calcom/platform-libraries@npm:0.0.347"
+"@calcom/platform-libraries@npm:@calcom/[email protected]":
+ version: 0.0.349
+ resolution: "@calcom/platform-libraries@npm:0.0.349"
dependencies:
"@calcom/features": "*"
"@calcom/lib": "*"
- checksum: 427ac769aeede1d75730bcef6fe63333a78f704d5549dd4ed021ca7dbfb8a2648ec5487c200097c1791a41bfb96ce11948545c1e3b0f17cdf2364e2e1afff2e3
+ checksum: 635b178c41cf39d989b7f0e8c584ee20cdcaa19a32baa2a1d388d6f124138ece0ba8d6c4c3facf71bb5f273f48d85c61c762f2beadbc9435b914ce4470e62f4c
languageName: node
linkType: hard