summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw_user.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-03-21 13:46:09 +0000
committerache <ache@FreeBSD.org>2001-03-21 13:46:09 +0000
commitf55dab1d8bb8e25bc088699c76887b07362b4335 (patch)
tree409f4afe6a2bc873636e36e70be4b69f2945952f /usr.sbin/pw/pw_user.c
parent3e32edf187f189ba6ca1425663a9f49b51edb1e9 (diff)
downloadFreeBSD-src-f55dab1d8bb8e25bc088699c76887b07362b4335.zip
FreeBSD-src-f55dab1d8bb8e25bc088699c76887b07362b4335.tar.gz
Use %c for expire/change dates
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-rw-r--r--usr.sbin/pw/pw_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index 2dee04b..8a09668 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -1155,9 +1155,9 @@ print_user(struct passwd * pwd, int pretty, int v7)
*p = (char) toupper((unsigned char)*p);
}
if (pwd->pw_expire > (time_t)0 && (tptr = localtime(&pwd->pw_expire)) != NULL)
- strftime(acexpire, sizeof acexpire, "%a %Ef %Y %X", tptr);
+ strftime(acexpire, sizeof acexpire, "%c", tptr);
if (pwd->pw_change > (time_t)0 && (tptr = localtime(&pwd->pw_change)) != NULL)
- strftime(pwexpire, sizeof pwexpire, "%a %Ef %Y %X", tptr);
+ strftime(pwexpire, sizeof pwexpire, "%c", tptr);
printf("Login Name: %-15s #%-12ld Group: %-15s #%ld\n"
" Full Name: %s\n"
" Home: %-26.26s Class: %s\n"
OpenPOWER on IntegriCloud