# How to make auto-lock time more specific?

**URL:** https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435
**Category:** Development
**Created:** [April 4, 2019, 12:12pm UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435 "2019-04-04T12:12:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [April 4, 2019, 12:12pm UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/1 "2019-04-04T12:12:58Z")

</div>

Is there a way to make the times in the text that appears for auto-locking more detailed?

Right now it’ll say something like this:

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

How could I go about making it say days + hours when \> 24 hours and hours + minutes otherwise instead? Will this need a plugin or a theme component?

Thanks!

---

<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: [April 4, 2019, 10:00pm UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/2 "2019-04-04T22:00:55Z")

</div>

Can’t you hover your pointing device over the date to see the exact time?

---

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [April 4, 2019, 10:54pm UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/3 "2019-04-04T22:54:08Z")

</div>

I just tried it on my instance and I don’t think so.  
Is there a topic on meta I can see that work on?

---

<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: [April 4, 2019, 11:21pm UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/4 "2019-04-04T23:21:34Z")

</div>

If it does not, we should make sure the detailed HTML title tag is present on the time for hovering devices. Cc @j.jaffeux

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [April 5, 2019, 8:13am UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/5 "2019-04-05T08:13:00Z")

</div>

Ok I went with “easy” solution and date only:

[https://github.com/discourse/discourse/commit/0bd480c60035aae211abbf75b549c5464c22655d](https://github.com/discourse/discourse/commit/0bd480c60035aae211abbf75b549c5464c22655d)

 ![21](https://global.discourse-cdn.com/meta/original/3X/2/b/2bf5957dae3dfdf53875b6ce64e394ac03833f0f.png)

Think that should be enough.

---

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [April 5, 2019, 8:27am UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/6 "2019-04-05T08:27:57Z")

</div>

Thanks! That works great for desktop! I do wish there was also some way to see it on mobile though.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [April 6, 2019, 4:00pm UTC](https://meta.discourse.org/t/how-to-make-auto-lock-time-more-specific/113435/7 "2019-04-06T16:00:05Z")

</div>

This topic was automatically closed after 31 hours. New replies are no longer allowed.
