diff options
author | nfnty <git@nfnty.se> | 2016-02-25 08:46:50 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2016-02-25 08:46:50 +0100 |
commit | 4b9a296eeea704bd8adc12d06ef27d7b01be1c75 (patch) | |
tree | 5a58dd69c736c073237b6a8758480aa80b6d1f4f | |
parent | cfc9f99e77eb00c1c9793a57af0a551f9b406605 (diff) | |
download | ranger-4b9a296eeea704bd8adc12d06ef27d7b01be1c75.tar.gz |
VCS: statusbar: Fix date format
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index fbd53855..33aa4296 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -178,14 +178,14 @@ class StatusBar(Widget): left.add(target.infostring.replace(" ", "")) left.add_space() - left.add(strftime(self.timeformat, - localtime(stat.st_mtime)), 'mtime') + left.add(strftime(self.timeformat, localtime(stat.st_mtime)), 'mtime') directory = target if target.is_directory else \ target.fm.get_directory(os.path.dirname(target.path)) if directory.vcs and directory.vcs.track: if directory.vcs.rootvcs.branch: - vcsinfo = '({0:s}: {1:s})'.format(directory.vcs.rootvcs.repotype, directory.vcs.rootvcs.branch) + vcsinfo = '({0:s}: {1:s})'.format( + directory.vcs.rootvcs.repotype, directory.vcs.rootvcs.branch) else: vcsinfo = '({0:s})'.format(directory.vcs.rootvcs.repotype) left.add_space() @@ -193,14 +193,15 @@ class StatusBar(Widget): left.add_space() if directory.vcs.rootvcs.obj.vcsremotestatus: - vcsstr, vcscol = self.vcsremotestatus_symb[directory.vcs.rootvcs.obj.vcsremotestatus] + vcsstr, vcscol = self.vcsremotestatus_symb[ + directory.vcs.rootvcs.obj.vcsremotestatus] left.add(vcsstr.strip(), 'vcsremote', *vcscol) if target.vcsstatus: vcsstr, vcscol = self.vcsstatus_symb[target.vcsstatus] left.add(vcsstr.strip(), 'vcsfile', *vcscol) if directory.vcs.rootvcs.head: left.add_space() - left.add(str(directory.vcs.rootvcs.head['date']), 'vcsdate') + left.add(directory.vcs.rootvcs.head['date'].strftime(self.timeformat), 'vcsdate') left.add_space() left.add(directory.vcs.rootvcs.head['summary'], 'vcscommit') |