relativedate: Deal with clock skew.
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 23 Apr 2009 17:39:42 +0000 (13:39 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 23 Apr 2009 17:39:42 +0000 (13:39 -0400)
commit2c74f09bb870c717669f273ba7d4aa1637dcccf1
treee2d266db63a142b0701b190b2edf49220c9b28bc
parent86d6b40070023409882a5768a4db899e523bba71
relativedate: Deal with clock skew.

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.
debian/changelog
underlays/javascript/relativedate.js