Update oauth library.
authorJosh Roesslein <jroesslein@gmail.com>
Sat, 31 Oct 2009 07:04:50 +0000 (02:04 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Sat, 31 Oct 2009 07:04:50 +0000 (02:04 -0500)
tweepy/oauth.py

index b6284c55bfdf033b656eb6efb83ffe52aae6fb50..286de187c9e7ca6bcb9800d30308af18d00cc72d 100644 (file)
@@ -514,7 +514,7 @@ class OAuthServer(object):
         """Verify that timestamp is recentish."""
         timestamp = int(timestamp)
         now = int(time.time())
-        lapsed = now - timestamp
+        lapsed = abs(now - timestamp)
         if lapsed > self.timestamp_threshold:
             raise OAuthError('Expired timestamp: given %d and now %s has a '
                 'greater difference than threshold %d' %