Localised inline date/time

Per:

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: :syringe:

  • 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 :sleeping:

  • 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.

6 Likes