From 4373ddb170f9e5499f08e033ab0c6c0b4b6afcca Mon Sep 17 00:00:00 2001 From: skeeter Date: Mon, 4 Dec 2000 00:12:32 +0000 Subject: [PATCH] quick fix for timezone settings --- calendar/q_fix.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/calendar/q_fix.php b/calendar/q_fix.php index 9826e63919..710f2ee5cb 100755 --- a/calendar/q_fix.php +++ b/calendar/q_fix.php @@ -19,12 +19,12 @@ $db2 = $phpgw->db; - $phpgw->db->query("SELECT datetime, mdatetime, cal_id FROM calendar_entry ORDER BY cal_id",__LINE__,__FILE__); - if($phpgw-db->num_rows()) { - while($phpgw->db-next_record()) { - $datetime = $phpgw->db->f("datetime") - ((60*60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"]); - $mdatetime = $phpgw->db->f("mdatetime") - ((60*60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"]); - $db2->query("UPDATE calendar_entry SET datetime=".$datetime.", mdatetime=".$mdatetime." WHERE cal_id=".$phpgw->db->f("cal_id"),__LINE__,__FILE__); + $phpgw->db->query("SELECT cal_datetime, cal_mdatetime, cal_id FROM calendar_entry ORDER BY cal_id",__LINE__,__FILE__); + if($phpgw->db->num_rows()) { + while($phpgw->db->next_record()) { + $datetime = $phpgw->db->f("cal_datetime") - ((60*60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"]); + $mdatetime = $phpgw->db->f("cal_mdatetime") - ((60*60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"]); + $db2->query("UPDATE calendar_entry SET cal_datetime=".$datetime.", cal_mdatetime=".$mdatetime." WHERE cal_id=".$phpgw->db->f("cal_id"),__LINE__,__FILE__); } } ?>