# Localised inline date/time

**URL:** https://meta.discourse.org/t/localised-inline-date-time/24149
**Category:** Feature
**Created:** [January 18, 2015, 4:25pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149 "2015-01-18T16:25:16Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [January 18, 2015, 4:25pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/1 "2015-01-18T16:25:17Z")

</div>

Timezones suck, especially when they make you miss meetings.

It would be incredibly useful to be able to add a date to a post, and have it automagically change into the timezone of the person reading it (if there’s data to do so) or be able to click on it and have it show the time in various (or a user defined) timezone.

I’d love to propose a syntax to use, but I have no idea what makes the most sense. Obviously, it would include ISO 8601 formatted dates in some way.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [May 3, 2018, 11:50am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/2 "2018-05-03T11:50:40Z")

</div>

Saw this tweet recently:

[https://twitter.com/discourse/status/990692886197895168?s=19](https://twitter.com/discourse/status/990692886197895168?s=19)

Is this a core feature now? Does it replace the chronos plugin? [https://meta.discourse.org/t/discourse-chronos-globe-with-meridians-timer-clock/69281](https://meta.discourse.org/t/discourse-chronos-globe-with-meridians-timer-clock/69281)

---

<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: [May 3, 2018, 11:51am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/3 "2018-05-03T11:51:47Z")

</div>

This is discourse-chronos, and yes it will probably end up being in core as a core plugin.

---

<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: [May 3, 2018, 11:52am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/4 "2018-05-03T11:52:36Z")

</div>

It is a requirement for the 2.0 release from my perspective.

---

<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: [May 3, 2018, 6:16pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/6 "2018-05-03T18:16:51Z")

</div>

I pushed cronos into core, I also took this opportunity to rename chronos to cronos, as it was a spelling mistake 😅 Enjoy!

> **[Commits · discourse/discourse](https://github.com/discourse/discourse/commits/master)**
>
> A platform for community discussion. Free, open, simple. - Commits · discourse/discourse

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 3, 2018, 6:19pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/7 "2018-05-03T18:19:24Z")

</div>

So it’s safe to remove the other repo from app.yml? Cronos is still going to work as usual right?

---

<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: [May 3, 2018, 6:20pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/8 "2018-05-03T18:20:43Z")

</div>

only if you have created dates with `[discourse-chronos...]` syntax you will need to change it to `[discourse-cronos...]`

It’s a little bit of pain, but it’s still a very unused plugins, so I did it now.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 3, 2018, 6:22pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/9 "2018-05-03T18:22:44Z")

</div>

I’ve created with the insert date option in the gear menu. Not many dates though. I guess if that requires manual modifications then those can be done but does it?

---

<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: [May 3, 2018, 6:23pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/10 "2018-05-03T18:23:30Z")

</div>

Yes you will have to manually update it, sorry about that. But it was bothering me too much to always read “chronos” 😛

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 3, 2018, 6:25pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/11 "2018-05-03T18:25:07Z")

</div>

I’ll surely take care of it then. Thanks for the heads up.

Ps: It bugged me too cronos vs chronos (felt more like something to arrange chronologically. but what?)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 3, 2018, 11:40pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/12 "2018-05-03T23:40:22Z")

</div>

Isn’t there a rake replace task? Would that work for converting it?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 3, 2018, 11:43pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/13 "2018-05-03T23:43:56Z")

</div>

> [@itsbhanusharma](#):
>
> So it’s safe to remove the other repo from app.yml? Cronos is still going to work as usual right?

Note, definitely remove it from your yaml, in a few weeks we will be making the repo explode, in the mean time I renamed plugin.rb to plugin\_old.rb so the old repo will do nothing.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 4, 2018, 12:09am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/14 "2018-05-04T00:09:18Z")

</div>

Chronos was the Greek personification of time.  
Cronos was a Greek titan, whose symbol was a scythe.

If it was a typo is was a pretty fitting one. Not sure what scythe-wielding Greek Titans have do to with user-friendly times though.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 4, 2018, 1:18am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/15 "2018-05-04T01:18:02Z")

</div>

Well … actually…

> **[Cronus](https://en.wikipedia.org/wiki/Cronus)**
>
> This is an accepted version of this page 
> 
> 
> In ancient Greek religion and mythology, Cronus, Cronos, or Kronos (/ˈkroʊnəs/ or /ˈkroʊnɒs/; Ancient Greek: Κρόνος) was the leader and youngest of the Titans, the children of Gaia (Earth) and Uranus (Sky). He overthrew his father and ruled during the mythological Golden Age until he was overthrown by his son Zeus and imprisoned in Tartarus. According to Plato, however, the deities Phorcys, Cronus, and Rhea were the eldest children of Oceanus and Tethy...

`Cronus` was the titan who did some pretty unsavory things to his daddy.

> **[Cronos](https://en.wikipedia.org/wiki/Cronos)**
>
> Cronus, also spelled "Cronos" or "Kronos", was the leader and the youngest of the first generation of Titans in Greek mythology.
> Cronos may also refer to:

Is an uncommon spelling for cronus… but it can also refer to this horror film

> **[Cronos (film)](https://en.wikipedia.org/wiki/Cronos_(film))**
>
> Cronos is a 1992 Mexican independent dark fantasy horror drama film written and directed by Guillermo del Toro and starring Federico Luppi and Ron Perlman. Cronos is del Toro's first feature film, and the first of several films on which he worked with Luppi and Perlman.
> Critical reviews were overwhelmingly positive, praising the inventive direction and creative storytelling, and over time Cronos has been regarded as a classic. The film was selected as the Mexican entry for the Best Foreign Lan...

I am kind of with you here, not sure why we renamed it ;p

My understanding is that it is called cronos as a wordplay on cron … the scheduler …

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 4, 2018, 1:38am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/16 "2018-05-04T01:38:21Z")

</div>

I’ve always thought chronus was appropriate. But I can understand the confusion

[cron - Wikipedia](https://en.m.wikipedia.org/wiki/Cron)

> The origin of the name _cron_ is from the Greek word for time, χρόνος ([chronos](https://en.m.wikipedia.org/wiki/Chronos))

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 4, 2018, 2:22am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/17 "2018-05-04T02:22:27Z")

</div>

> [@sam](#):
>
> I am kind of with you here, not sure why we renamed it ;p
> 
> My understanding is that it is called cronos as a wordplay on cron … the scheduler …

Yeah… Considering the rename impacts installations too maybe we could, y’know, have @j.jaffeux revert the name change?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 4, 2018, 2:42am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/18 "2018-05-04T02:42:55Z")

</div>

Names are @codinghorror’s department

If he wants this named chronos like it was or leave it cronos like it is now or call it something else like discourse shared dates is up to him.

I do think readability wise we should call the element [date] just like we call poll [poll] and not [discourse-poll] less words makes us all more happy

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 4, 2018, 2:51am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/19 "2018-05-04T02:51:08Z")

</div>

> [@sam](#):
>
> I do think readability wise we should call the element [date] just like we call poll [poll] and not [discourse-poll] less words makes us all more happy

For sure, and if not I’d just prefer to reference something related to time, rather than a deity who castrated his father and ate his own kids. Right now though there are instances which have [discourse-chronos] referred to which will need to update to something because of this change, it would be great if they didn’t have to update _twice_.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 4, 2018, 3:29am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/20 "2018-05-04T03:29:47Z")

</div>

I had like 10 entries so no big deal but will definitely be interested to know if a rake task exists…

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [May 4, 2018, 3:48am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/21 "2018-05-04T03:48:33Z")

</div>

This is what I was thinking of

> [@Replace a string in all posts](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729):
>
> bookmark This guide explains how to replace a string in all posts within a Discourse instance. person_raising_hand Required user level: System Administrator warning Console Access Required Want to replace a string in all the posts on a site? Let’s get started! warning WARNING: We strongly recommend you take a full backup before proceeding, and make sure your string replacement is specific enough to affect only the places you want it to. If this string replacement goes wrong, every…

[Next page](https://meta.discourse.org/t/localised-inline-date-time/24149.md?page=2)
