summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-04-06 22:29:59 +0200
committerhut <hut@lepus.uberspace.de>2016-04-06 22:57:40 +0200
commit4dcbb42adaf42e9c154ac3011ddedec2793c090a (patch)
tree0c08c9edebb995a4fc50152fb9857e991c8050de
parenta467b7cad6d6c988b958b4ac654cd0898c5541d9 (diff)
downloadranger-4dcbb42adaf42e9c154ac3011ddedec2793c090a.tar.gz
core.linemode: Changed timestamp formatting in mtime linemode
-rw-r--r--ranger/core/linemode.py3
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 ""