diff sat_frontends/jp/cmd_info.py @ 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 947c4c4c5c53
children 263a00e90174
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):