From 7878dcfde9e0acc4c42a66d780e20c6ec60c4e4e Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 1 Jun 2018 18:27:49 +0200 Subject: [PATCH] jp (info/session): show short + relative date by default for "started" --- sat_frontends/jp/cmd_info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sat_frontends/jp/cmd_info.py b/sat_frontends/jp/cmd_info.py index 30867332..99883cb3 100644 --- a/sat_frontends/jp/cmd_info.py +++ b/sat_frontends/jp/cmd_info.py @@ -175,7 +175,9 @@ class Session(base.CommandBase): 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):