From 3676adfd5a447d99a17d7ae52beaafad72d0248a Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 21 Apr 2012 10:22:57 -0400 Subject: [PATCH] Use utcnow() as the basis for calculating fuzzy date strings. --- xonstat/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/util.py b/xonstat/util.py index 92ab448..1bea47c 100755 --- a/xonstat/util.py +++ b/xonstat/util.py @@ -118,7 +118,7 @@ def pretty_date(time=False): pretty string like 'an hour ago', 'Yesterday', '3 months ago', 'just now', etc """ - now = datetime.now() + now = datetime.utcnow() if type(time) is int: diff = now - datetime.fromtimestamp(time) elif isinstance(time,datetime): -- 2.39.2