From 3a4779f5ff4ec4321c4f046e760ea47281685802 Mon Sep 17 00:00:00 2001 From: jengo Date: Sun, 5 Aug 2001 08:04:36 +0000 Subject: [PATCH] Converted to use the dbs timestamp field --- phpgwapi/inc/class.log.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.log.inc.php b/phpgwapi/inc/class.log.inc.php index 8e0e3424bb..9f8c51ef6d 100644 --- a/phpgwapi/inc/class.log.inc.php +++ b/phpgwapi/inc/class.log.inc.php @@ -83,8 +83,9 @@ global $phpgw, $phpgw_info; $db = $phpgw->db; $db->query ("insert into phpgw_log (log_date, log_user, log_app, log_severity) values " - ."(".time() - .",".$phpgw->session->account_id + ."('". $phpgw->db->to_timestamp(time() +) + ."',".$phpgw->session->account_id .",'".$phpgw_info['flags']['currentapp']."'" .",'".$this->severity()."'" .")" @@ -98,8 +99,9 @@ ."(log_msg_seq_no, log_msg_date, " ."log_msg_severity, log_msg_code, log_msg_msg, log_msg_parms) values " ."(" . $i - .", " . $err->timestamp - .", '". $err->severity . "'" + .", '" . $phpgw->db->to_timestamp($err->timestamp +) + ."', '". $err->severity . "'" .", '". $err->code . "'" .", '". $err->msg . "'" .", '". addslashes(implode('|',$err->parms)). "'"