Exchange时区无效问题

本文针对创建会议时出现的“System.Exception:UnabletocreateanewmeetingErrorCalendarInvalidTimeZone”错误进行了详细解答。通过设置TimeZoneType的TimeZoneName为(GMT+08:00)Beijing,Chongqing,HongKong,Urumqi并指定BaseOffset为-PT8H,可以有效避免因时区设置不当导致的问题。

问题:System.Exception: Unable to create a new meeting
ErrorCalendarInvalidTimeZone
时区无效。

解答:

创建TimeZoneType的时候TimeZoneName如下设置

TimeZoneType tzt = new TimeZoneType();

      //tzt.TimeZoneName = TimeZone.CurrentTimeZone.StandardName; //如使用这行会出现上述问题
                tzt.TimeZoneName = "(GMT+08:00)Beijing, Chongqing, Hong Kong, Urumqi";
                tzt.BaseOffset = "-PT8H";

转载于:https://www.cnblogs.com/csts/archive/2012/04/23/2466582.html

[root@VM-20-16-opencloudos ~]# curl -v https://restapi.amap.com/v3/ip?key=3fcd190efd00656eab3b21cd64ad676c * Trying 106.11.43.113... * TCP_NODELAY set * Connected to restapi.amap.com (106.11.43.113) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-ECDSA-AES256-GCM-SHA384 * ALPN, server accepted to use http/1.1 * Server certificate: * subject: C=CN; ST=ZheJiang; L=HangZhou; O=Alibaba (China) Technology Co., Ltd.; CN=*.amap.com * start date: Feb 6 06:02:02 2025 GMT * expire date: Mar 10 03:21:00 2026 GMT * subjectAltName: host "restapi.amap.com" matched cert's "*.amap.com" * issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign GCC R3 OV TLS CA 2024 * SSL certificate verify ok. > GET /v3/ip?key=3fcd190efd00656eab3b21cd64ad676c HTTP/1.1 > Host: restapi.amap.com > User-Agent: curl/7.61.1 > Accept: */* > < HTTP/1.1 200 OK < Server: Tengine < Date: Tue, 27 May 2025 06:10:28 GMT < Content-Type: application/json;charset=UTF-8 < Content-Length: 96 < Connection: close < gsid: 033003229136174832622862100034040263967 < sc: 0.004 < Access-Control-Allow-Origin: * < Access-Control-Allow-Methods: * < Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid < * Closing connection 0 * TLSv1.2 (OUT), TLS alert, close notify (256): {"status":"1","info":"OK","infocode":"10000","province":[],"city":[],"adcode":[],"rectangle":[]}
最新发布
05-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值