]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Use %c for expire/change dates
authorAndrey A. Chernov <ache@FreeBSD.org>
Wed, 21 Mar 2001 13:46:09 +0000 (13:46 +0000)
committerAndrey A. Chernov <ache@FreeBSD.org>
Wed, 21 Mar 2001 13:46:09 +0000 (13:46 +0000)
pw/pw_user.c

index 2dee04b680d1b6beba5056deca3326a708e56e31..8a096687e9171eb08a23cec0c21382b9d607bade 100644 (file)
@@ -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"