# HG changeset patch # User Goffi # Date 1527870469 -7200 # Node ID 87f8cf51fca534b324316aa3769cd161ddd5bb06 # Parent 700327fa9281e517bcdeb7bdfc8e3573ec8c138a jp (info/session): show short + relative date by default for "started" diff -r 700327fa9281 -r 87f8cf51fca5 sat_frontends/jp/cmd_info.py --- a/sat_frontends/jp/cmd_info.py Fri Jun 01 12:23:43 2018 +0200 +++ b/sat_frontends/jp/cmd_info.py Fri Jun 01 18:27:49 2018 +0200 @@ -175,7 +175,9 @@ def default_output(self, data): started = data['started'] - data['started'] = date_utils.date_fmt(started) + data['started'] = u'{short} (UTC, {relative})'.format( + short=date_utils.date_fmt(started), + relative=date_utils.date_fmt(started, 'relative')) self.host.output(C.OUTPUT_DICT, 'simple', {}, data) def add_parser_options(self):