diff --git a/lib/time/day_to_str.h b/lib/time/day_to_str.h index f908a752..b70e9897 100644 --- a/lib/time/day_to_str.h +++ b/lib/time/day_to_str.h @@ -43,7 +43,7 @@ day_to_str(size_t size, char buf[size], long day) return; } - if (strftime(buf, size, "%Y-%m-%d", &tm) == 0) + if (strftime(buf, size, "%F", &tm) == 0) strtcpy(buf, "future", size); } diff --git a/src/chage.c b/src/chage.c index 5146fde0..c990953b 100644 --- a/src/chage.c +++ b/src/chage.c @@ -247,7 +247,7 @@ print_day_as_date(long day) return; } - STRFTIME(buf, iflg ? "%Y-%m-%d" : "%b %d, %Y", &tm); + STRFTIME(buf, iflg ? "%F" : "%b %d, %Y", &tm); (void) puts (buf); }