
|
If you were logged in you would be able to see more operations.
|
|
|
Loom
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
|
|
|
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
|
|
Description
|
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 |
Show » |
| There are no comments yet on this issue.
|
|