jp (info/session): show short + relative date by default for "started"

This commit is contained in:
Goffi 2018-06-01 18:27:49 +02:00
commit 7878dcfde9

View file

@ -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):