%F is C99 and is not necessarily portable.
}
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 '';
}
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 '';