# Timeline timestamp not updating

**URL:** <https://meta.discourse.org/t/timeline-timestamp-not-updating/256447>\
**Category:** Bug\
**Created:** [February 27, 2023, 11:03pm UTC](https://meta.discourse.org/t/timeline-timestamp-not-updating/256447 "2023-02-27T23:03:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [March 9, 2023, 9:43am UTC](https://meta.discourse.org/t/timeline-timestamp-not-updating/256447/5 "2023-03-09T09:43:57Z")

</div>

> [@isaacjanzen](#):
>
> desired functionality is to update the `bottomAge` with the newest date on post creation, and then continue to update it automatically as the time passes

Yeah that would be ideal 👍

If we use the right HTML structure, the automatic updating over time can be [handled automatically](https://github.com/discourse/discourse/blob/7b1eb080baefbb36e71b7256acf9655700bb53c6/app/assets/javascripts/discourse/app/initializers/relative-ages.js#L8-L10) by our relative-date helper.

To handle changes to the `topic.last_posted_at` value, we should be able to lean on Glimmer’s reactivity, rather than doing stuff on scroll. e.g.

```js
get bottomAge(){
  return this.args.topic.get("last_posted_at") || this.args.topic.get("created_at");
}

```

And then in the hbs we can use [our relative age helper](https://github.com/discourse/discourse/blob/7b1eb080baefbb36e71b7256acf9655700bb53c6/app/assets/javascripts/discourse/app/helpers/application.js#L13-L15) to render it in the right structure for the auto-updating

```plaintext
{{age-with-tooltip this.bottomAge}}

```

Might need to make some improvements to the helper so that it can support the ‘addAgo’ and ‘defaultFormat’ parameters?

---

_[View the full topic](https://meta.discourse.org/t/timeline-timestamp-not-updating/256447)._
