# Twitter嵌入显示UTC时间，而非本地时间

**URL:** <https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337>\
**Category:** Bug\
**Created:** [2021年一月7日 02:51 UTC](https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337 "2021-01-07T02:51:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2021年一月7日 02:51 UTC](https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337/1 "2021-01-07T02:51:17Z")

</div>

在 BBS 上发现的错误报告：[WATCH LIVE: Trump rioters break through barrier and are attempting to break into the Capitol - #426 by alahmnat - boing - Boing Boing BBS](https://bbs.boingboing.net/t/watch-live-trump-rioters-break-through-barrier-and-are-attempting-to-break-into-the-capitol/188281/426)

> 等等，现在是晚上 11 点？他在哪里发的推文？他能告诉我们接下来 5 小时（东部时间）会发生什么吗？

> BBS 不知为何在嵌入推文时使用了 UTC 时间戳。

如果可能，带有时间戳的嵌入内容应使用本地日期。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2021年一月7日 04:24 UTC](https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337/2 "2021-01-07T04:24:29Z")

</div>

鉴于 oneboxes 的一般理念是在发帖时将其内置，您设想这如何实现？它会显示相对过去的时间吗？还是会实时更新？这里有很多未解答的问题，其中一些还相当复杂。

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2021年一月7日 04:26 UTC](https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337/3 "2021-01-07T04:26:55Z")

</div>

我提议直接复用这个：

2021-01-06T20:34:00Z

只需保留我们为此制定的任何语义即可。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2021年一月7日 04:39 UTC](https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337/4 "2021-01-07T04:39:04Z")

</div>

没问题，只要操作简单且能利用我们现有的代码，我完全支持！

不过，Onebox 的一般理念是在发帖时将其内容“固化”下来，以供日后查阅，因此我们希望保留这一特性。我曾重建过那些推文已被删除的帖子 HTML，结果原本“有用的 Onebox！”就变成了“导致孤独 404 错误的坏链接”😢。

---

<div class="post-metadata">

**Author:** ![dylanb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanb/32/139102_2.png) [@dylanb](https://meta.discourse.org/u/dylanb)\
**Post date:** [2022年十月12日 16:32 UTC](https://meta.discourse.org/t/twitter-embeds-show-utc-time-not-local-time/175337/5 "2022-10-12T16:32:31Z")

</div>

此问题是否曾实施修复？
