# 已升级。现有的日历事件已从本地时间转换为UTC时间

**URL:** <https://meta.discourse.org/t/upgraded-pre-existing-calendar-events-shifted-from-local-time-to-utc/343653>\
**Category:** Bug\
**Tags:** events\
**Created:** [2024 年12 月 20 日 15:54 UTC](https://meta.discourse.org/t/upgraded-pre-existing-calendar-events-shifted-from-local-time-to-utc/343653 "2024-12-20T15:54:05Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

作者： ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
发布日期： [2025 年1 月 6 日 08:47 UTC](https://meta.discourse.org/t/upgraded-pre-existing-calendar-events-shifted-from-local-time-to-utc/343653/12 "2025-01-06T08:47:24Z")

</div>

我几天前推送了一个修复程序，应该可以解决这个问题：

> <https://github.com/discourse/discourse-calendar/commit/46c93b81f025bdea343308ba4034da37b725daa8>
>
> The next ensures \`this.htmlDates\` has correctly been set and a render is on goin…g which is going to be awaited by the schedule render. Before this fix \`querySelectorAll\` could return an empty nodes list as the dates were not rendered yet.
> 
> Note next shouldn't have this effect here, so it's either a false positive or another side effect we were not expecting.

---

_[View the full topic](https://meta.discourse.org/t/upgraded-pre-existing-calendar-events-shifted-from-local-time-to-utc/343653)._
