Forum Discussion

vincent-au's avatar
12 years ago

Abbreviating relative dates?

Hi there, I'm trying to tweak how relative dates are shown.  So, instead of 2 minutes ago, 2m ago; etc.  I've gone into the text keys and edited those, changing

 

friendly_dates.format.under_hour                   = %m% ''minutes ago''

 to 

 

friendly_dates.format.under_hour                   = %m% ''m ago''

 This, however, makes it show up as 2 m ago, and the space just seems weird.  I removed a space in the text key so it reads

 

friendly_dates.format.under_hour                   = %m%''m ago''

 

but that just results in 2'm ago, which is even odder.  Any timestamp experts who can help with this?

 

Thanks!!

 

 

  • Hey,

    Try this
    friendly_dates.format.under_hour = '%m%m ago'

    Hope this works.

    Thanks,
    Chhama

1 Reply

  • Hey,

    Try this
    friendly_dates.format.under_hour = '%m%m ago'

    Hope this works.

    Thanks,
    Chhama