From 4dcbb42adaf42e9c154ac3011ddedec2793c090a Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 6 Apr 2016 22:29:59 +0200 Subject: core.linemode: Changed timestamp formatting in mtime linemode --- ranger/core/linemode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 "" -- cgit 1.4.1-2-gfad0