From 68b2a54133038c2263db3bed9a40377e7ae6ed11 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Tue, 2 Dec 2008 00:08:54 +0000 Subject: [PATCH] store in UTC --- functions/functions.process.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/functions.process.php b/functions/functions.process.php index b40fa114..7f416d9f 100644 --- a/functions/functions.process.php +++ b/functions/functions.process.php @@ -106,7 +106,7 @@ function start_process($filename) if ($process == false) { $sql = "INSERT INTO `process` (`process_id`,`start`,`stop`,`kill`,`data`) - VALUES (NULL,NOW(),NULL,0,'')"; + VALUES (NULL,CONVERT_TZ(NOW(),'System','UTC'),NULL,0,'')"; $rs = $db->Execute($sql); $args = $db->Insert_ID(); @@ -165,7 +165,7 @@ function end_process($process_id) global $db; $sql = "UPDATE `process` - SET `stop` = NOW() + SET `stop` = CONVERT_TZ(NOW(),'System','UTC') WHERE `process_id` = '$process_id'"; $db->Execute($sql);