« HTML in email | Main| IBM Nederland organiseert ND7 launch event »

Human Readable Dates in XPages 8.5.1

Category  
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

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

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

OpenNTF random projects

PlanetLotus