aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-06 03:55:57 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-06 03:56:09 +0530
commit5876c61f4cfc1510040840cf5e3484596afe10d1 (patch)
treee6954889237e659301c51456244665e5beaed9c6 /nnn.c
parent915df53a041d98e119be95892b493adf787648cd (diff)
downloadnnn-5876c61f4cfc1510040840cf5e3484596afe10d1.tar.gz
Rearrange date format in file details
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nnn.c b/nnn.c
index c794b62..afc68b3 100644
--- 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)) {