From d0dfe2659d440785058fdce0529dd610d9fef01a Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 27 Feb 2016 19:03:39 +0100 Subject: fix time stamp selection --- lr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lr.c') diff --git a/lr.c b/lr.c index f5e2e32..f21cefc 100644 --- a/lr.c +++ b/lr.c @@ -1513,14 +1513,15 @@ print_format(struct fileinfo *fi) case 'T': { char tfmt[3] = "%\0\0"; char buf[256]; - s++; - if (!*s) - break; time_t t = (*s == 'A' ? fi->sb.st_atime : *s == 'C' ? fi->sb.st_ctime : fi->sb.st_mtime); + s++; + if (!*s) + break; + color_age_on(t); if (*s == '-') { printf("%3ldd%3ldh%3ldm%3lds", -- cgit 1.4.1