# 时间格式为24小时制

**URL:** <https://meta.discourse.org/t/time-format-to-24-hours/56789>\
**Category:** Support\
**Created:** [2017年二月2日 13:07 UTC](https://meta.discourse.org/t/time-format-to-24-hours/56789 "2017-02-02T13:07:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)\
**Post date:** [2022年八月26日 09:16 UTC](https://meta.discourse.org/t/time-format-to-24-hours/56789/4 "2022-08-26T09:16:03Z")

</div>

转到“设置”–\>“自定义”–\>“文本”

然后搜索“:mm”，并使用 [Moment.js 格式页面](http://momentjs.com/docs/#/displaying/format/) 作为指南，根据需要更改格式。

但是，它并不完全起作用。在聊天中，时间戳从上午/下午格式变为 24 小时制，但不知何故并非所有内容都如此。我还进行了重建，并在没有缓存的另一个浏览器中进行了尝试。

 ![Screenshot 2022-08-26 at 10-49-50 Pioneering the path to circularity - Train of thought _ Blogs - TZM Community Forum](https://global.discourse-cdn.com/meta/original/4X/b/3/0/b30dc1b2793c5d9aa98a567d5b2fceb4ddacc44c.png)  
 ![screenshotsss](https://global.discourse-cdn.com/meta/original/4X/b/9/6/b966f62f881f4f9bb4915aba357f0f28252eeb49.png)  
 ![Screenshot 2022-08-26 at 10-48-15 TZM Community Forum - The Zeitgeist Movement Community Forum](https://global.discourse-cdn.com/meta/original/4X/9/5/f/95fbcfe4c1656870c94a4b4163c63c51be7aac79.png)

我修改了以下内容：

 ![Screenshot 2022-08-26 at 11-13-14 Admin - TZM Community Forum](https://global.discourse-cdn.com/meta/original/4X/c/2/9/c29cfbf22ab4cb183f78e655b34f464ad3528b32.png)

当然，将区域设置为欧洲国家（不包括英国）也可以达到目的。但那样的话，网站的语言也会改变。为了保持自定义文本和语言的一致性，我将其锁定为美式英语。我只想更改时间格式。也许以后日期格式也会更改。

有人知道如何修复时间格式的最后一些不一致之处吗？我想使用美式英语，并将所有内容都设置为 24 小时制。我猜这些异常值没有使用这些变量，而是被硬编码为该格式。

---

_[View the full topic](https://meta.discourse.org/t/time-format-to-24-hours/56789)._
