1. new date format

    It’s so much nicer to read “1 hour ago” then “2008-11-29 10:32”. This has been implemented as a special date format called age:

    <r:show date='created_at' format='age/%Y-%m-%d'/>

    The part after the slash / is the format used if the element is further away then a week.

    This format displays the following messages:

    1 minute ago  / in 1 minute
    x minutes ago / in x minutes
    1 hour ago    / in 1 hour
    x hours ago   / in x hours
    yesterday     / tomorrow
    x days ago    / in x days
    [normal date if age is greater then a week]
    

    As soon as someone finds time to translate this it will be available in other languages as well…

    Gaspard Bucher

    comments

    1. Wednesday, December 31 2008 12:12 Jérémie Ecoffey

      Speaking of other languages, I could help you with the french translation. if you are interrested, send me an email : jeremie[dot]ecoffey[at]gmail[dot]com

    2. leave a comment