# 即将到来的事件日历中的重复事件未能处理夏令时更改

**URL:** <https://meta.discourse.org/t/recurring-events-in-upcoming-events-calendar-fail-to-handle-daylight-saving-change/380712>\
**Category:** Bug\
**Tags:** events\
**Created:** [2025年八月28日 09:39 UTC](https://meta.discourse.org/t/recurring-events-in-upcoming-events-calendar-fail-to-handle-daylight-saving-change/380712 "2025-08-28T09:39:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![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)\
**Post date:** [2025年八月28日 12:55 UTC](https://meta.discourse.org/t/recurring-events-in-upcoming-events-calendar-fail-to-handle-daylight-saving-change/380712/2 "2025-08-28T12:55:36Z")

</div>

这应该作为一项更大的修复的一部分进行修复：

> <https://github.com/discourse/discourse/commit/249ae0009ac208ecf5c49dd29db8ded4d244fc75>
>
> This commit removes the \`include\_expired\` param and its associated site
> setting …\`include\_expired\_events\_on\_calendar\`.
> 
> Since recent changes this performance optimisation doesn’t make sense
> anymore as we only load the events needed for a specific before/after
> range.
> 
> The rules are the following:
> 
> Non recurring events:
> \- They have to have a start date between before/after range
> 
> Recurring events:
> \- they don't have event\_dates, so we don't rely on it for them
> \- what's important for recurring\_event, is the recurring\_until property
> and the original starts at
> \- we want to return recurring events when their start date is is after
> the after param and the before param is before the recurring\_until
> \- if recurring\_until is NULL we just look at the start date
> 
> It's done this way as the serializer only sends the rrule to the front,
> and this is the frontend which will compute the recurring events, but if
> you want to have all the events of august, and your recurring event is
> starting in june, you need to also fetch this june event.
> 
> This commit ensures we can now deal properly with nil dates as it makes
> no sense to have dates for an expired recurring event.

我在本地进行了测试，但如果对您不起作用，请告知。

---

_[View the full topic](https://meta.discourse.org/t/recurring-events-in-upcoming-events-calendar-fail-to-handle-daylight-saving-change/380712)._
