Bugzilla – Attachment 2714 Details for
Bug 3295
sessionlog does not contain real times
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updated for current 3.0.x
0001-Use-strftime-to-format-sessionlog-times.patch (text/plain), 2.42 KB, created by
MJ Ray (software.coop)
on 2010-10-30 02:49:09 UTC
(
hide
)
Description:
updated for current 3.0.x
Filename:
MIME Type:
Creator:
MJ Ray (software.coop)
Created:
2010-10-30 02:49:09 UTC
Size:
2.42 KB
patch
obsolete
>From 5d5aff227e59a105c39883cc5ef1210e4b3dfb67 Mon Sep 17 00:00:00 2001 >From: MJ Ray <mjr@phonecoop.coop> >Date: Sat, 30 Oct 2010 03:44:02 +0100 >Subject: [PATCH] Use strftime to format sessionlog times > >--- > C4/Auth.pm | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 108d9e3..8d0a522 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -564,7 +564,7 @@ sub checkauth { > $session->flush; > $session->delete(); > C4::Context->_unset_userenv($sessionID); >- _session_log(sprintf "%20s from %16s logged out at %30s (manually).\n", $userid,$ip,scalar localtime); >+ _session_log(sprintf "%20s from %16s logged out at %30s (manually).\n", $userid,$ip,(strftime "%c",localtime)); > $sessionID = undef; > $userid = undef; > } >@@ -573,7 +573,7 @@ sub checkauth { > $info{'timed_out'} = 1; > $session->delete(); > C4::Context->_unset_userenv($sessionID); >- _session_log(sprintf "%20s from %16s logged out at %30s (inactivity).\n", $userid,$ip,scalar localtime); >+ _session_log(sprintf "%20s from %16s logged out at %30s (inactivity).\n", $userid,$ip,(strftime "%c",localtime)); > $userid = undef; > $sessionID = undef; > } >@@ -584,7 +584,7 @@ sub checkauth { > $info{'different_ip'} = 1; > $session->delete(); > C4::Context->_unset_userenv($sessionID); >- _session_log(sprintf "%20s from %16s logged out at %30s (ip changed to %16s).\n", $userid,$ip,scalar localtime, $info{'newip'}); >+ _session_log(sprintf "%20s from %16s logged out at %30s (ip changed to %16s).\n", $userid,$ip,(strftime "%c",localtime), $info{'newip'}); > $sessionID = undef; > $userid = undef; > } >@@ -611,7 +611,7 @@ sub checkauth { > my $password = $query->param('password'); > my ( $return, $cardnumber ) = checkpw( $dbh, $userid, $password ); > if ($return) { >- _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},scalar 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.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 3295
:
1210
| 2714