]> eyrie.org Git - kerberos/kadmin-remctl.git/commitdiff
Use %Y-%m-%d for date formatting instead of %F
authorRuss Allbery <rra@stanford.edu>
Wed, 14 Jul 2010 02:23:15 +0000 (19:23 -0700)
committerRuss Allbery <rra@stanford.edu>
Wed, 14 Jul 2010 02:23:15 +0000 (19:23 -0700)
%F is C99 and is not necessarily portable.

kadmin-backend
kadmin-backend-heim

index 002c9c44a041bf17b7daf78b5ca71ac5201a2e5d..fb9e52f6d6897cdcd3bf31c5729a4011d3386c1a 100755 (executable)
@@ -451,9 +451,9 @@ sub kadmin_expiration_check {
     }
 
     if ($type eq 'pwexpire' && $pwexpire > 0) {
-        return strftime ("%F %TZ", gmtime (str2time ($pwexpire)));
+        return strftime ("%Y-%m-%d %TZ", gmtime (str2time ($pwexpire)));
     } elsif ($type eq 'expire' && $expire > 0) {
-        return strftime ("%F %TZ", gmtime (str2time ($expire)));
+        return strftime ("%Y-%m-%d %TZ", gmtime (str2time ($expire)));
     }
 
     return '';
index 1f910ddfdc954ba74575931359544eb5fbbafe76..2359f58fd06f721a02d1912a220f69a691816aae 100755 (executable)
@@ -427,9 +427,9 @@ sub kadmin_expiration_check {
     }
 
     if ($type eq 'pwexpire' && $pwexpire) {
-        return strftime ("%F %TZ", gmtime ($pwexpire));
+        return strftime ("%Y-%m-%d %TZ", gmtime ($pwexpire));
     } elsif ($type eq 'expire' && $expire) {
-        return strftime ("%F %TZ", gmtime ($expire));
+        return strftime ("%Y-%m-%d %TZ", gmtime ($expire));
     }
 
     return '';