# 如何将帖子数据从相对数据改为绝对数据

**URL:** <https://meta.discourse.org/t/how-to-change-the-post-data-from-relative-data-to-absolute/365700>\
**Category:** Product Support\
**Created:** [2025 年5 月 12 日 09:33 UTC](https://meta.discourse.org/t/how-to-change-the-post-data-from-relative-data-to-absolute/365700 "2025-05-12T09:33:09Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

作者： ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)\
发布日期： [2025 年5 月 12 日 13:39 UTC](https://meta.discourse.org/t/how-to-change-the-post-data-from-relative-data-to-absolute/365700/10 "2025-05-12T13:39:58Z")

</div>

我看到了这个文件  
[discourse-main/app/assets/javascripts/discourse/app/components/post/meta-data/date.gjs](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/post/meta-data/date.gjs)

```html
<template>
    <div class="post-info post-date">
      <a
        class={{concatClass
          "post-date"
          (if (and @post.wiki @post.last_wiki_edit) "last-wiki-edit")
        }}
        href={{@post.shareUrl}}
        title={{i18n "post.sr_date"}}
        {{on "click" this.showShareModal}}
      >
        <RelativeDate @date={{this.date}} />
      </a>
    </div>
  </template>

```

这是正确的模板吗，我可以通过主题组件来修改它吗？

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-the-post-data-from-relative-data-to-absolute/365700)._
