feat: update Office365 getMainTimeZone to handle new Graph API format and convert Windows timezones to IANA (#23763)
* feat: update Office365 getMainTimeZone to handle new Graph API format and convert Windows timezones to IANA - Handle new Graph API response format with 'value' field containing Windows timezone names - Add windows-iana dependency for timezone conversion from Windows to IANA format - Maintain backward compatibility with legacy direct string response format - Add proper error handling with fallback to original timezone name if conversion fails - Log conversion details for debugging and monitoring Co-Authored-By: [email protected] <[email protected]> * fix: example app select default value * fixup! fix: example app select default value * fix: preserve legacy string timezone behavior, only convert new object format - Address GitHub comments from supalarry about behavior change concerns - Preserve original behavior: return legacy string responses as-is without conversion - Only convert Windows timezones from new Graph API object format - Add explanatory comments about API format evolution - Restructure conditional logic to handle formats independently Co-Authored-By: [email protected] <[email protected]> * trigger CI with ready-for-e2e label Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Morgan <[email protected]>
This commit is contained in:
4 files changed
+60
-10
No files matched your search
@@ -3750,6 +3750,7 @@ __metadata:
|
||||
"@calcom/prisma": "workspace:*"
|
||||
"@calcom/types": "workspace:*"
|
||||
msw: ^2.7.0
|
||||
windows-iana: ^5.1.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -49166,6 +49167,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"windows-iana@npm:^5.1.0":
|
||||
version: 5.1.0
|
||||
resolution: "windows-iana@npm:5.1.0"
|
||||
checksum: 0dc9ababde5f839e83a4bcd448347d8da563efd9e23ce61ac777e9992774ff85de2a9f343f87b80b37b181742fe4d783cff3ba39191cfedb6357ae7d5f58aadc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"winston-transport@npm:^4.5.0, winston-transport@npm:^4.9.0":
|
||||
version: 4.9.0
|
||||
resolution: "winston-transport@npm:4.9.0"
|
||||
|
||||
Reference in new issue
Block a user