]> Sergey Matveev's repositories - nnn.git/commitdiff
Use consistent date format
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 14 Jan 2018 07:13:20 +0000 (12:43 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 14 Jan 2018 07:13:20 +0000 (12:43 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index bc33b8856635298367e123a246dff56a4c2ac902..cdabfdee3cd0cf53f4c7612918d583d2a564ef62 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -295,7 +295,7 @@ static const char messages[][16] =
        "no traversal",
        "invalid key",
        "set NNN_COPIER",
-       "%a %F %T %z",
+       "%F %T %z",
 };
 
 /* For use in functions which are isolated and don't return the buffer */
@@ -1451,7 +1451,7 @@ printent_long(struct entry *ent, int sel, uint namecols)
 {
        static char buf[18], *pname;
 
-       strftime(buf, 18, "%Y-%m-%d %H:%M", localtime(&ent->t));
+       strftime(buf, 18, "%F %R", localtime(&ent->t));
        pname = unescape(ent->name, namecols);
 
        /* Directories are always shown on top */