jp (info/session): show short + relative date by default for "started"
This commit is contained in:
parent
3c30ecd118
commit
7878dcfde9
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue