contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
490 stars 214 forks source link

"Humanize" dates #4250

Open lionel-m opened 12 years ago

lionel-m commented 12 years ago

It would be nice to have these formats for the news.

More is perhaps not necessary...

We can choose this feature in the module (optional).

JimmyRittenborg commented 12 years ago

I like this one (:

qzminski commented 12 years ago

I like that too, and would be fun to develop it :)

Toflar commented 12 years ago

@qzminski make a pull request ;-)

qzminski commented 12 years ago

@Toflar, @qzminski's not good enough :)

JimmyRittenborg commented 12 years ago

maybe stuff like this should be made with javascript, as caching and google might find relative dates pretty freaky (:

lionel-m commented 12 years ago

There is a good project in JS for that. https://github.com/timrwood/moment

JimmyRittenborg commented 12 years ago

@lionel-m Thanks! that one looks pretty sweet :)

leofeyer commented 6 years ago

We are using the KnpTimeBundle in Contao 4 to "humanize" the last login time in the back end. Maybe we can expand this and use it everywhere?