summaryrefslogtreecommitdiff
path: root/underlays/javascript/relativedate.js
AgeCommit message (Collapse)Author
2009-04-23relativedate: Deal with clock skew.Joey Hess
If the server has a clock running a bit ahead of the web browsing client, relativedate could cause somewhat confusing displays like "3 seconds from now" for just posted things. As a hack, avoid displaying times in the future if they're less than a small slip forward. I chose 30 minutes because both client and server could be wrong in different directions, while it's still close enough that "just now" is not horribly wrong.
2008-10-20use relativedate as the css class for dates that should display relativeJoey Hess
2008-10-17relativedate: New javascript-alicious plugin that makes all dates display ↵Joey Hess
relative, in a very nice way, if I say so myself.