changeset 2605:87f8cf51fca5

jp (info/session): show short + relative date by default for "started"
author Goffi <goffi@goffi.org>
date Fri, 01 Jun 2018 18:27:49 +0200
parents 700327fa9281
children 6a261b725f71
files sat_frontends/jp/cmd_info.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):