[Vtigercrm-commits] [vtiger-commits] r9241 - /vtigercrm/trunk/soap/vtigerolservice.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Sep 4 03:07:11 EDT 2006
Author: richie
Date: Mon Sep 4 01:06:56 2006
New Revision: 9241
Log:
Issue in Calendar duetime has been fixed --Jeri
Modified:
vtigercrm/trunk/soap/vtigerolservice.php
Modified: vtigercrm/trunk/soap/vtigerolservice.php
==============================================================================
--- vtigercrm/trunk/soap/vtigerolservice.php (original)
+++ vtigercrm/trunk/soap/vtigerolservice.php Mon Sep 4 01:06:56 2006
@@ -1062,13 +1062,14 @@
$expldstartdate = explode("-", $clndr["date_start"]);
$expldtimestart = explode(":", $clndr["time_start"]);
- $expldduedate = explode("-", $clndr["due_date"]);
-
//this makes a timestamp out of the exploded date this number is in seconds
$startdtm = mktime($expldtimestart[0], $expldtimestart[1], 0, $expldstartdate[1], $expldstartdate[2], $expldstartdate[0]);
- $duedtm = mktime($expldtimestart[0]+$clndr["duration_hours"], $expldtimestart[1]+$clndr["duration_minutes"], 0, $expldduedate[1], $expldduedate[2], $expldduedate[0]);
-
+ $expldduedate = explode("-", $clndr["due_date"]);
+ $expldtimeend = explode(":", $clndr["time_end"]);
+ //this makes a timestamp out of the exploded date this number is in seconds
+ $duedtm = mktime($expldtimeend[0], $expldtimeend[1], 0, $expldduedate[1], $expldduedate[2], $expldduedate[0]);
+
$clndr["date_start"] = date("Y-m-d H:i:s", $startdtm);
$clndr["due_date"] = date("Y-m-d H:i:s", $duedtm);
More information about the vtigercrm-commits
mailing list