From 8f9c063114def747b8fbabe8c3a48c7708474e2c Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Feb 2020 10:18:55 +0000 Subject: only do to_pretty_time as relative when requested --- modules/tweets/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/tweets/format.py') diff --git a/modules/tweets/format.py b/modules/tweets/format.py index aab1c62d..540e7638 100644 --- a/modules/tweets/format.py +++ b/modules/tweets/format.py @@ -3,7 +3,7 @@ from src import utils def _timestamp(dt): seconds_since = time.time()-dt.timestamp() - timestamp = utils.datetime.format.to_pretty_time( + timestamp = utils.datetime.format.to_pretty_since( seconds_since, max_units=2) return "%s ago" % timestamp -- cgit v1.3.1-10-gc9f91