# 即使设置了-1，已过期的带有结束时间的事件仍会从即将发生的事件中移除

**URL:** <https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125>\
**Category:** Support\
**Tags:** events\
**Created:** [2022年七月27日 08:45 UTC](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125 "2022-07-27T08:45:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年七月28日 09:07 UTC](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125/9 "2022-07-28T09:07:27Z")

</div>

> [@Helen22](#):
>
> 在哪里可以找到这个？

你可以通过在帖子的 OP（首帖）中添加以下内容来创建一个常规日历：（勾选 `calendar enabled` 选项）

```plaintext
[calendar]
[/calendar]

```

然后，所有带有描述和日期的后续帖子都会被添加到该日历中。例如：

```plaintext
这是我的生日！
[date-range from=2022-12-20 to=2020-12-21 timezone="America/Boise"]

```

你可以从分类 URL 的末尾获取你希望更突出显示该日历的分类 ID，并从 JSON 中获取日历主题的帖子 ID，然后将它们添加到以下设置中：

 ![calendar categories](https://global.discourse-cdn.com/meta/original/4X/8/f/c/8fcd8133ccca037834eba6ef140f7f88f600407d.png)

这些主题中的日历项目帖子受 `delete expired event posts after`（删除过期的活动帖子后）设置的控制。 👍

在 [Discourse Calendar and Events](https://meta.discourse.org/t/discourse-calendar/97376) 主题中有更详细的信息， ~~如果你需要额外的帮助，也可以随时发起一个新的 #Support 主题。 🙂~~

实际上，既然我们知道该设置按预期工作，现在是时候将这个主题转移到 #Support 板块作为其永久家园了。在我更新了 Calendar&Event 文档后，也许值得创建新的 #Contribute > UX 或 #Contribute > Feature 主题来涵盖任何遗漏的想法。 👍

---

_[View the full topic](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125)._
