change format of time in auditlog

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9178 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-03-29 14:55:43 +00:00
parent c2f0a296b5
commit f71de540d7

View File

@ -484,9 +484,10 @@ sub message
{
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
localtime(time);
my $currtime = sprintf("%02d-%02d-%04d %02d:%02d:%02d",
$mon + 1, $mday, $year + 1900,
$hour, $min, $sec);
my $currtime = sprintf("%04d-%02d-%02d %02d:%02d:%02d",
$year + 1900, $mon + 1, $mday,
$hour, $min, $sec);
$auditlogentry->{audittime} = $currtime;
$auditlogentry->{userid} = $newrsp->{userid}->[0];