From f0f2236c58f7b5b82575e5a5f5700d0f44693d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 27 Apr 2011 15:04:24 +0200 Subject: [PATCH] don't consider subseconds wrt expiration --- extra/modules/quota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/modules/quota.py b/extra/modules/quota.py index 0bb38d7..d6cd47a 100644 --- a/extra/modules/quota.py +++ b/extra/modules/quota.py @@ -103,7 +103,7 @@ def is_expired(): if not t: return False try: - expiration_date = datetime.strptime(t, '%Y-%m-%dT%H:%M:%S.%f') + expiration_date = datetime.strptime(t, '%Y-%m-%dT%H:%M:%S') except ValueError: return False return expiration_date < datetime.now()