From b61103718f3cb3a85fa4a4a4152ebc1c23130998 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 5 Sep 2001 03:42:40 +0000 Subject: [PATCH] Fixed logs not showing the current timestamp --- admin/inc/class.bolog.inc.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/admin/inc/class.bolog.inc.php b/admin/inc/class.bolog.inc.php index 25be362043..4e350eba26 100755 --- a/admin/inc/class.bolog.inc.php +++ b/admin/inc/class.bolog.inc.php @@ -68,12 +68,15 @@ reset($rows); while(list($rno,$r)=each($rows)) { +// _debug_array($r['log_msg_date']); +// echo 'Convert: ' . $r['log_date'] . ' -> ' . $GLOBALS['phpgw']->db->from_timestamp($r['log_msg_date']); + unset($r['acount_pwd']); // remove the accounts_pwd - $r['log_date_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['log_date'])); - $r['log_msg_date_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['log_msg_date'])); + $r['log_date_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['log_date']['value'])); + $r['log_msg_date_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['log_msg_date']['value'])); $r['log_full_name']['value'] = $r['account_lastname']['value'] . ', ' .$r['account_firstname']['value']; - $r['account_lastlogin_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['account_lastlogin'])); - $r['account_lastpwd_change_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['account_lastpwd_change'])); + $r['account_lastlogin_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['account_lastlogin']['value'])); + $r['account_lastpwd_change_e']['value'] = $GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->from_timestamp($r['account_lastpwd_change']['value'])); $r['account_lastloginfrom_e']['value'] = 'www.nowhere.com'; $r['log_msg_text']['value'] = lang($r['log_msg_msg']['value'],explode('|',$r['log_msg_parms']['value']));