fix: delegated credentials timezone outlook (#23700)
This commit is contained in:
1 parent
6838133865
commit
c6c17ac388
3 files changed
+11
-8
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user