[Koha-patches] [PATCH] Bug 5066 (Log timestamp consistently in _session_log)
Marcel de Rooy
M.de.Rooy at rijksmuseum.nl
Wed Nov 17 13:18:00 CET 2010
Small fix with thanks to Galen.
---
C4/Auth.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Auth.pm b/C4/Auth.pm
index c7477b1..7404f96 100644
--- a/C4/Auth.pm
+++ b/C4/Auth.pm
@@ -717,7 +717,7 @@ sub checkauth {
( $return, $cardnumber ) = checkpw( $dbh, $userid, $password, $query );
}
if ($return) {
- _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},localtime);
+ _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime));
if ( $flags = haspermission( $userid, $flagsrequired ) ) {
$loggedin = 1;
}
--
1.6.0.6
More information about the Koha-patches
mailing list