mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-03 15:40:32 +00:00
mscan: adaptive iso date
This commit is contained in:
parent
e97bf25a4e
commit
59c00003f6
2
mscan.c
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user