diff options
author | hut <hut@lepus.uberspace.de> | 2016-04-06 22:29:59 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-04-06 22:57:40 +0200 |
commit | 4dcbb42adaf42e9c154ac3011ddedec2793c090a (patch) | |
tree | 0c08c9edebb995a4fc50152fb9857e991c8050de /ranger | |
parent | a467b7cad6d6c988b958b4ac654cd0898c5541d9 (diff) | |
download | ranger-4dcbb42adaf42e9c154ac3011ddedec2793c090a.tar.gz |
core.linemode: Changed timestamp formatting in mtime linemode
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/linemode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/linemode.py b/ranger/core/linemode.py index d3aff064..9d033b72 100644 --- a/ranger/core/linemode.py +++ b/ranger/core/linemode.py @@ -109,7 +109,8 @@ class ModificationTimeLinemode(LinemodeBase): def filetitle(self, file, metadata): import time - return "%s %s" % (time.ctime(file.stat.st_mtime), file.relative_path) + return "%s %s" % (time.strftime("%x %X", + time.localtime(file.stat.st_mtime)), file.relative_path) def infostring(self, file, metadata): return "" |