IBM 连接 API 更新事件

IBM connections API update event

我正在尝试更新在社区中创建的活动。 这是我发送到服务器的原子xml:

<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:snx="http://www.ibm.com/xmlns/prod/sn" xmlns:thr="http://purl.org/syndication/thread/1.0">
   <id>urn:lsid:ibm.com:calendar:event:0eff8fdf-4e5c-48be-be9b-ff700b274576</id>
   <snx:eventInstUuid>0eff8fdf-4e5c-48be-be9b-ff700b274576</snx:eventInstUuid>
   <title type="text">Test event</title>
   <snx:location>Event location</snx:location>
   <snx:startDate>2015-10-22T14:00:00.000+03</snx:startDate>
   <snx:endDate>2015-10-22T15:00:00.000+03</snx:endDate>
   <snx:allday>0</snx:allday>
   <category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="event-instance"/>
   <content type="html">Event description</content>
</entry>

问题是它更新了所有允许更新的字段。但是 startDate 和 endDate 会更新,因为没有时区偏移信息。这意味着如果我将 startDate 设置为 14:00,它实际上将时间设置为 14:00 减去 3 小时。 我做错了什么?

仅当您将其写为“+03:00”时,连接代码才能解析“+03”(时区,除非您将其设置为 'Z' 用于 UTC)需要有 6 个字符)