apigee/usergrid-sample-html5-messagee — pull request #7 by DinoChiesa (2012-09-19 00:38:48+00:00)
Title: Fix prettyDate().  Also, provide a index.php file to do CORS. 

fix to prettyDate() function and its caller, drawMessages().
There was lots of date arithmetic, none of it documented, which seemed to go round
the block and end up where it started. Converting a number to a Date()
object, then converting that to a string, then replacing dashes in that
string with slashes, converting the result back to another Date()
object. It was all very obtuse. On my browser it resulted in all
messages being formatted as "just now" which is obviously wrong. I
simplified things and it seems to work better now.