2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

store in UTC

This commit is contained in:
azammitdcarf
2008-12-02 00:08:54 +00:00
parent 30557ffadf
commit 68b2a54133

View File

@@ -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);