aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:00:42 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 20:00:42 +0200
commit59c00003f626868277c3a726a6259a8d33e74f60 (patch)
tree67b2fdcde8ede289eb7ef99312eb440163f71682
parente97bf25a4e16baa46e91d74d76aabdaf8abe4ad5 (diff)
downloadmblaze-59c00003f626868277c3a726a6259a8d33e74f60.tar.gz
mscan: adaptive iso date
-rw-r--r--mscan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mscan.c b/mscan.c
index c84ec6f..48e20d0 100644
--- 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)