Docusign在WebHook事件数据中给出了不正确的TimezoneOffset [英] Docusign gives incorrect TimezoneOffset in WebHook Event data

查看:87
本文介绍了Docusign在WebHook事件数据中给出了不正确的TimezoneOffset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 WebHook 事件(也称为Connect),它类似于SOAP API调用,用于更新Web应用程序中的文档签名状态。创建或更新DocuSign文档时,Webhook事件中推送的XML数据包含无效的TimeZoneOffset数据。

We are using WebHook Event also known as Connect which is like a SOAP APIs call to update the document signature status in our web application. When a DocuSign document is created or updated the XML data that is pushed in the Webhook events contains invalid TimeZoneOffset data.

例如:印度标准时间的偏移量为 +5:30 ,但在xml中仅显示 5

For instance: the offset for Indian Standard Time is +5:30 but in the xml it says only 5.

请在下面的xml代码段中查看:

Please see below the snippet of the xml:

<DocuSignEnvelopeInformation>
        ...
            </DocumentStatus>
        </DocumentStatuses>
    </EnvelopeStatus>
    <TimeZone>India Standard Time</TimeZone>
    <TimeZoneOffset>5</TimeZoneOffset>


推荐答案

我刚刚确认此问题仍然存在。我将我的API时区设置为尼泊尔(GMT + 5:45),并收到了包含以下内容的Connect POST:

I just confirmed that this issue remains open. I had my API timezone set to Nepal (GMT+5:45) and received a Connect POST which included the following:

尼泊尔标准时间5

省略小数部分(0:45)。

The fractional portion (0:45) is omitted.

先生。 Grigsby的响应非常有趣,但与尼泊尔标准时间和印度标准时间的偏移量不是5的事实无关,因此Connect / Webhook发布的信息不正确。

Mr. Grigsby's response is very interesting, but doesn't have anything to do with the fact that the offsets for Nepal Standard Time and India Standard Time are not 5, and thus the information posted by Connect/Webhook is not correct.

但是,有一个简单的解决方法。世界上只有少数这样的时区。我们可以将它们的字典合并到我们的webhook处理程序中,从而根据节点值确定偏移量。

However, there is a straight-forward workaround. There are only a handful of such timezones across the world. We can incorporate a dictionary of them in our webhook handlers and thereby determine the offset based on the node values.

现在实施我的解决方法。这看起来很方便: https://www.timeanddate.com/time/time- zone-interesting.html

Implementing my workaround now. This looks handy: https://www.timeanddate.com/time/time-zones-interesting.html

这篇关于Docusign在WebHook事件数据中给出了不正确的TimezoneOffset的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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