# 如何显示午夜日期的确切时间？

**URL:** <https://meta.discourse.org/t/how-to-show-the-exact-time-for-dates-that-happen-at-midnight/188621>\
**Category:** Support\
**Created:** [2021年四月30日 00:34 UTC](https://meta.discourse.org/t/how-to-show-the-exact-time-for-dates-that-happen-at-midnight/188621 "2021-04-30T00:34:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)\
**Post date:** [2021年四月30日 00:34 UTC](https://meta.discourse.org/t/how-to-show-the-exact-time-for-dates-that-happen-at-midnight/188621/1 "2021-04-30T00:34:02Z")

</div>

有没有办法在用户的时区中，显示恰好发生在午夜的时间？如果日期设置为午夜时间，日期小部件会使其看起来像没有附加时间。

我尝试过不同的日期格式，但看起来如果事件在用户时区的午夜发生，时间会被移除。

我们使用此功能让用户跨时区安排在线游戏活动，但对某些用户来说，事件看起来有特定时间，而对其他用户则不然，除非他们点击（而有些人可能不会点击）。

这里有一张截图来说明我的意思：

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/b/6bb68d939474438327b1c5ef3c19346f84b16305.png)
