diff options
| author | 2020-02-24 10:18:55 +0000 | |
|---|---|---|
| committer | 2020-02-24 10:18:55 +0000 | |
| commit | 8f9c063114def747b8fbabe8c3a48c7708474e2c (patch) | |
| tree | 745c1f7287a5abbc0f0a8dc6c1473d77bbad1452 /modules/tweets/format.py | |
| parent | `command` doesn't exist - use event["spec"][2] (diff) | |
only do to_pretty_time as relative when requested
Diffstat (limited to 'modules/tweets/format.py')
| -rw-r--r-- | modules/tweets/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
