LeoMcA
(Leo McArdle)
January 18, 2015, 4:25pm
1
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.
6 Likes
mcwumbly
(Dave McClure)
May 3, 2018, 11:50am
2
Saw this tweet recently:
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
2 Likes
j.jaffeux
(Joffrey Jaffeux)
May 3, 2018, 11:51am
3
This is discourse-chronos, and yes it will probably end up being in core as a core plugin.
2 Likes
It is a requirement for the 2.0 release from my perspective.
5 Likes
j.jaffeux
(Joffrey Jaffeux)
May 3, 2018, 6:16pm
6
I pushed cronos into core, I also took this opportunity to rename chronos to cronos, as it was a spelling mistake Enjoy!
5 Likes
So it’s safe to remove the other repo from app.yml? Cronos is still going to work as usual right?
j.jaffeux
(Joffrey Jaffeux)
May 3, 2018, 6:20pm
8
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.
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?
j.jaffeux
(Joffrey Jaffeux)
May 3, 2018, 6:23pm
10
Yes you will have to manually update it, sorry about that. But it was bothering me too much to always read “chronos”
2 Likes
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?)
cpradio
(cpradio)
May 3, 2018, 11:40pm
12
Isn’t there a rake replace task? Would that work for converting it?
sam
(Sam Saffron)
May 3, 2018, 11:43pm
13
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.
1 Like
Stephen
(Stephen)
May 4, 2018, 12:09am
14
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.
2 Likes
sam
(Sam Saffron)
May 4, 2018, 1:18am
15
Well … actually…
In Greek mythology, Cronus, Cronos, or Kronos (/ˈkroʊnəs/ or /ˈkroʊnɒs/, US: /-oʊs/, from Greek: Κρόνος, Krónos), was the leader and youngest of the first generation of Titans, the divine descendants of Uranus, the sky, and Gaia, the earth. He overthrew his father and ruled during the mythological Golden Age, until he was overthrown by his own 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.
Is an uncommon spelling for cronus… but it can also refer to this horror film
Cronos is a 1993 Mexican horror drama film written and directed by Guillermo del Toro, starring veteran Argentinean actor Federico Luppi and American actor Ron Perlman. Cronos is del Toro's first feature film, and the first of several films on which he collaborated with either Luppi or Perlman. The film was selected as the Mexican entry for the Best Foreign Language Film at the 66th Academy Awards, but was not accepted as a nominee.
In the year 1536, an alchemist in Veracruz develops a mechani...
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 …
2 Likes
I’ve always thought chronus was appropriate. But I can understand the confusion
cron - Wikipedia
The origin of the name cron is from the Greek word for time, χρόνος (chronos )
1 Like
Stephen
(Stephen)
May 4, 2018, 2:22am
17
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?
sam
(Sam Saffron)
May 4, 2018, 2:42am
18
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
7 Likes
Stephen
(Stephen)
May 4, 2018, 2:51am
19
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 .
I had like 10 entries so no big deal but will definitely be interested to know if a rake task exists…
cpradio
(cpradio)
May 4, 2018, 3:48am
21
This is what I was thinking of
Want to replace a string in all the posts? Let’s do it!
Access your site
First connect to your Droplet via SSH, and enter the Docker container for your Discourse instances:
cd /var/discourse
./launcher enter app
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 post on your site will look broken!
Remap all posts cont…
2 Likes