服务通信API当前状态返回错误的日期 [英] Service Communications API Current Status returns wrong date

查看:78
本文介绍了服务通信API当前状态返回错误的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Service Communications API查询当前状态时(例如 https://manage .office.com/api/v1.0/ {tenant-guid}/ServiceComms/CurrentStatus),返回的StatusTime(应为当前日期/时间)始终为24小时.

When you query the current status using the Service Communications API (e.g. https://manage.office.com/api/v1.0/{tenant-guid}/ServiceComms/CurrentStatus ), the StatusTime returned (which should be the current date/time) is always 24 hours out.

这是今天早上我的房客返回的当前状态(对于EXO):

This is the current status (for EXO) returned for my tenant this morning:

{
            "FeatureStatus": [
                {
                    "FeatureDisplayName": "Sign-in",
                    "FeatureName": "Signin",
                    "FeatureServiceStatus": "ServiceOperational",
                    "FeatureServiceStatusDisplayName": "Normal service"
                },
                {
                    "FeatureDisplayName": "E-Mail and calendar access",
                    "FeatureName": "Access",
                    "FeatureServiceStatus": "ServiceDegradation",
                    "FeatureServiceStatusDisplayName": "Service degradation"
                },
                {
                    "FeatureDisplayName": "E-Mail timely delivery",
                    "FeatureName": "Delivery",
                    "FeatureServiceStatus": "ServiceOperational",
                    "FeatureServiceStatusDisplayName": "Normal service"
                },
                {
                    "FeatureDisplayName": "Management and Provisioning",
                    "FeatureName": "Provisioning",
                    "FeatureServiceStatus": "ServiceOperational",
                    "FeatureServiceStatusDisplayName": "Normal service"
                },
                {
                    "FeatureDisplayName": "Voice mail",
                    "FeatureName": "UnifiedMessaging",
                    "FeatureServiceStatus": "ServiceOperational",
                    "FeatureServiceStatusDisplayName": "Normal service"
                }
            ],
            "Id": "Exchange",
            "IncidentIds": [
                "EX151178"
            ],
            "Status": "ServiceDegradation",
            "StatusDisplayName": "Service degradation",
            "StatusTime": "2018-11-26T09:58:07.9107187Z",
            "Workload": "Exchange",
            "WorkloadDisplayName": "Exchange Online"
        }

可以看出,显示的StatusTime是"2018-11-26T09:58:07.9107187Z".但是,我今天发出了请求,正确的StatusTime应该是"2018-11-27T09:58:07.9107187Z".

As can be seen, the StatusTime shown is "2018-11-26T09:58:07.9107187Z". However, I made the request today, and the correct StatusTime should be "2018-11-27T09:58:07.9107187Z".

时间始终正确,日期始终是24小时.

The time is always correct, the date is always 24 hours out.

推荐答案

此Statustime是DateTimeOffset. DateTimeOffset代表相对于协调世界时(UTC)的时间点,通常表示为日期和一天中的时间.

This Statustime is a DateTimeOffset. The DateTimeOffset represents a point in time, typically expressed as a date and time of day, relative to Coordinated Universal Time (UTC).

尽管DateTimeOffset值包含一个偏移量,但它不是完全可识别时区的数据结构.尽管与UTC的偏移是时区的一个特征,但它并不能明确地标识时区.

Although a DateTimeOffset value includes an offset, it is not a fully time zone-aware data structure. While an offset from UTC is one characteristic of a time zone, it does not unambiguously identify a time zone.

此帖子也遇到了同样的问题还是您的问题,所以我认为这是正常时间,没有异常.

This post is also encountering the same problem as you, so I think this time is normal time, and there is no abnormality.

请参考以下链接:

Office 365服务通信API参考(预览)

这篇关于服务通信API当前状态返回错误的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆