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:
parent
c2f0a296b5
commit
f71de540d7
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user