History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LOOM-136
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ignacio Coloma
Reporter: Ignacio Coloma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Loom

Format a date in a humanized form, both server and client-side

Created: 13/Jan/09 07:04 PM   Updated: 13/Jan/09 07:05 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1


 Description  « Hide
The typical need of formatting a timestamp in both server and client-side should be addressed:

server:
<l:formatDate value="${mydate}"/>

client (javascript):
new Date(new Date().getTime() - 10 * 60 * 1000).humanized()

Both should return a formatted string like "10 minutes ago"

This is expected to work under the same rules of Ruby's DateHelper.time_ago_in_words

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.