Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 Sharepoint 的 Simile Timeline 并且根据气泡文本将开始和结束时间拉入 OK,但是事件的条被绘制在错误的位置。它们都比实际时间提前 4 小时。例如,一个事件的时间是 8:00 和 10:00,但绘制时间是从 12 小时到 14 小时。我认为这与 GMT 和我的当地时间(4 小时)之间的偏移有关。关于如何使它没有偏移地绘画的任何想法?
为了让我看起来正确,我不得不省略输入 bandInfo 的 timeZone 属性(将其保留为默认值),然后强制 DateTime 对象为 UTC,即使它不是。我希望有比这更好的方法,但它有效。
我从 SharePoint 服务提供的字符串中提取月、日、年和时间,并对时间线事件对象进行如下重组:
monthStr + "/" + dayStr + "/" + YearStr + " " + timeStr + " UTC";