]> Sergey Matveev's repositories - nnn.git/commitdiff
Rearrange date format in file details
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 5 Jan 2018 22:25:57 +0000 (03:55 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 5 Jan 2018 22:26:09 +0000 (03:56 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index c794b627dde7bd389b9544ed8f776a5c9384c5dd..afc68b34552fd4374532cc25439c5b6192354847 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1582,15 +1582,15 @@ show_stats(char *fpath, char *fname, struct stat *sb)
                sb->st_mode & 7, perms, sb->st_uid, (getpwuid(sb->st_uid))->pw_name, sb->st_gid, (getgrgid(sb->st_gid))->gr_name);
 
        /* Show last access time */
-       strftime(g_buf, 40, "%a %b %d %T %Z %Y", localtime(&sb->st_atime));
+       strftime(g_buf, 40, "%a %b %d %Y %T %z", localtime(&sb->st_atime));
        dprintf(fd, "\n\n  Access: %s", g_buf);
 
        /* Show last modification time */
-       strftime(g_buf, 40, "%a %b %d %T %Z %Y", localtime(&sb->st_mtime));
+       strftime(g_buf, 40, "%a %b %d %Y %T %z", localtime(&sb->st_mtime));
        dprintf(fd, "\n  Modify: %s", g_buf);
 
        /* Show last status change time */
-       strftime(g_buf, 40, "%a %b %d %T %Z %Y", localtime(&sb->st_ctime));
+       strftime(g_buf, 40, "%a %b %d %Y %T %z", localtime(&sb->st_ctime));
        dprintf(fd, "\n  Change: %s", g_buf);
 
        if (S_ISREG(sb->st_mode)) {