# 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:** 12
**Page:** 2

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [May 4, 2018, 3:55am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/22 "2018-05-04T03:55:15Z")

</div>

> [@sam](#):
>
> in a few weeks we will be making the repo explode

@sam can you please elaborate on this?  
My forum is still in an invitation-only stage, so before going public, it would be useful to know if major changes are incoming, which could break themes, plugins etc.

---

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [May 4, 2018, 4:42am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/23 "2018-05-04T04:42:15Z")

</div>

Just checked the **Insert Date** for the first time and the user interface feels very technical.

I suggest revising the user side:

- drop the [Advanced Mode] button, it will just scare people off, while hiding useful information
- replace the input box and time format symbols with a simple menu (or a selection list) displaying available time formats, as fully formatted text, not symbols.
- replace “Use “\T\Z” to display the user timezone in words (Europe/Paris)” with a selection box [display timezone in words]

The idea is to hide the formatting codes from the UI. They would still be seen in the composer as source code and in the admin plugin config.

IMO, the following:

- 8:30 PM
- 8:30:25 PM
- September 4, 1986
- September 4, 1986 8:30 PM

is much more user-friendly than:

- LT
- LTS
- LL
- LLL

---

<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, 5:24am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/24 "2018-05-04T05:24:46Z")

</div>

Per:

[https://github.com/discourse/discourse/commit/741898a106985b86325e35fd3cacde7b48360aab](https://github.com/discourse/discourse/commit/741898a106985b86325e35fd3cacde7b48360aab)

The element formerly known as `[discourse-cronos]` is now known as `[date]`

So:

`[discourse-cronos recurring=1.months;time=05:19;date=2018-05-04;format=LTS;timezones=Europe/Paris|America/Los_Angeles;]`

Becomes:

`[date=2018-05-04 recurring=1.months time=05:19 format=LTS timezones="Europe/Paris|America/Los_Angeles"]`

I find this a lot more readable.

So this … is both good news and bad news.

**Wired** : 💉

- Syntax is far easier to read in posts
- Syntax is more compact
- Cronus the imprisoned Titan is further imprisoned and not visible in Markdown

**Tired** 😴

- If you were using Chronos in the past… all dates are broke. And a simple regex is not going to save you.

Still waiting on @codinghorror to decide if we want to rename the actual plugin to `discourse-shared-dates` which is a boring name that properly conveys what this thing tries to do.

---

<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 4, 2018, 5:35am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/25 "2018-05-04T05:35:46Z")

</div>

We might as well do the renaming now and get all the breaking out at once..

---

<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, 5:38am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/26 "2018-05-04T05:38:53Z")

</div>

Should I go with `discourse-shared-dates`, `discourse-local-dates`? something else?

---

<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 4, 2018, 5:39am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/27 "2018-05-04T05:39:51Z")

</div>

maybe local-dates since it is about your local timezone?

---

<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, 5:40am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/28 "2018-05-04T05:40:42Z")

</div>

Sounds good to me! making it happen.

---

<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, 5:46am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/29 "2018-05-04T05:46:58Z")

</div>

@sam is this the final format or more changes are expected?

---

<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, 5:47am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/30 "2018-05-04T05:47:33Z")

</div>

final is a very loaded word… I hope not to need any changes … but who knows.

---

<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, 5:49am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/31 "2018-05-04T05:49:54Z")

</div>

I feel more comfortable with date as the bbcode. Hoping this doesn’t goes drastically to a different route. Small edits are okay.

---

<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, 6:15am UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/32 "2018-05-04T06:15:30Z")

</div>

The big rename is now done.

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

---

<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 7, 2018, 4:00pm UTC](https://meta.discourse.org/t/localised-inline-date-time/24149/33 "2018-05-07T16:00:01Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.

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