Human Readable Dates in XPages 8.5.1
Category xpages domino
Bookmark :
For a Xpage project I made use of the Server Side Javascript library posted by Matt White. In 8.5 it worked fine and returned the last modified date in a human readable fashion.
I discovered that in 8.5.1 the code was broken and returned 'undefined' instead of a text.
After some testing I found the solution.
An example of the solution.
Before:
@Text(@Round(diff_in_minutes / 43200))
After:
Math.round(diff_in_minutes / 43200).toString()
Download
Bookmark :
For a Xpage project I made use of the Server Side Javascript library posted by Matt White. In 8.5 it worked fine and returned the last modified date in a human readable fashion.
I discovered that in 8.5.1 the code was broken and returned 'undefined' instead of a text.
After some testing I found the solution.
An example of the solution.
Before:
@Text(@Round(diff_in_minutes / 43200))
After:
Math.round(diff_in_minutes / 43200).toString()
Download
- 

