mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 59c00003f626868277c3a726a6259a8d33e74f60
parent e97bf25a4e16baa46e91d74d76aabdaf8abe4ad5
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu,  4 Aug 2016 20:00:42 +0200

mscan: adaptive iso date

Diffstat:
mscan.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/mscan.c b/mscan.c @@ -114,6 +114,8 @@ fmt_date(struct message *msg, int w, int iso) if (iso && w >= 19) strftime(date, sizeof date, "%Y-%m-%d %H:%M:%S", tm); + else if (iso && w >= 16) + strftime(date, sizeof date, "%Y-%m-%d %H:%M", tm); else if (iso || tm->tm_year != curyear) strftime(date, sizeof date, "%Y-%m-%d", tm); else if (tm->tm_yday != curyday)