# 在事件模态框中全天设置事件非常困难（并且 00:00 令人困惑）

**URL:** <https://meta.discourse.org/t/it-is-very-difficult-to-make-events-all-day-in-the-events-modal-and-00-00-is-confusing/393495>\
**Category:** UX\
**Tags:** events, completed\
**Created:** [2026 年1 月 15 日 00:48 UTC](https://meta.discourse.org/t/it-is-very-difficult-to-make-events-all-day-in-the-events-modal-and-00-00-is-confusing/393495 "2026-01-15T00:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
发布日期： [2026 年1 月 15 日 00:48 UTC](https://meta.discourse.org/t/it-is-very-difficult-to-make-events-all-day-in-the-events-modal-and-00-00-is-confusing/393495/1 "2026-01-15T00:48:54Z")

</div>

在使用 [Discourse Calendar (and Event)](https://meta.discourse.org/t/discourse-calendar-and-event/97376) 时，我发现使用模态框安排全天活动非常困难：

![image](https://global.discourse-cdn.com/meta/original/4X/4/c/d/4cd08275c0124114bc5b98383207d8f8a7d8b99c.png)

基本上，没有明显的“全天”选项—— **必须** 选择一个时间。更糟糕的是，当它被设置为开始时间之后的一天或更晚时，结束时间默认为 `00:00`，这非常令人恼火（如果是在同一天，它默认比开始时间晚 1 小时）。

我注意到当选择 `00:00` 时，会发生以下情况：

1. 在用户界面中，它被表示为全天活动（即 **不是** 午夜）  
`[event start="2026-01-21 00:00" status="public" timezone="Pacific/Auckland" end="2026-01-22 00:00"]`  
显示为：  

2. 在时区时间中，它显示为当天的午夜——如果按字面意思理解，这实际上比应该的时间晚了 24 小时  

3. 如果在 Markdown 中删除时间，行为方式相同

如果能让非专业用户更容易理解这一切会很好，但我接受日期存储方式可能存在限制。

作为替代方案，是否可以在模态框中添加一个“全天活动”选项，勾选后隐藏时间？

然后我们可以使用 `00:00` 来表示它应该表示的字面时间（即指定日期的 00:01 前一分钟，_而不是_指定日期的 23:59 后一分钟）——就像它在“插入日期/时间”功能中的表现一样。

---

_[View the full topic](https://meta.discourse.org/t/it-is-very-difficult-to-make-events-all-day-in-the-events-modal-and-00-00-is-confusing/393495)._
