fix: delegated credentials timezone outlook (#23700)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
"@axiomhq/winston": "^1.2.0",
|
||||
"@calcom/platform-constants": "*",
|
||||
"@calcom/platform-enums": "*",
|
||||
"@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.347",
|
||||
"@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.349",
|
||||
"@calcom/platform-types": "*",
|
||||
"@calcom/platform-utils": "*",
|
||||
"@calcom/prisma": "*",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -2708,7 +2708,7 @@ __metadata:
|
||||
"@axiomhq/winston": ^1.2.0
|
||||
"@calcom/platform-constants": "*"
|
||||
"@calcom/platform-enums": "*"
|
||||
"@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.347"
|
||||
"@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.349"
|
||||
"@calcom/platform-types": "*"
|
||||
"@calcom/platform-utils": "*"
|
||||
"@calcom/prisma": "*"
|
||||
@@ -3767,13 +3767,13 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@calcom/platform-libraries@npm:@calcom/platform-libraries@0.0.347":
|
||||
version: 0.0.347
|
||||
resolution: "@calcom/platform-libraries@npm:0.0.347"
|
||||
"@calcom/platform-libraries@npm:@calcom/platform-libraries@0.0.349":
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user