[Vtigercrm-commits] [vtiger development] #759: Warning: mktime(): Windows does not support negative values
vtiger development
vtiger-tickets at vtiger.fosslabs.com
Wed May 10 13:56:14 EDT 2006
#759: Warning: mktime(): Windows does not support negative values
-------------------------------------+--------------------------------------
Reporter: charlesjacome at gmail.com | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone:
Component: vtigercrm | Version: 4.2.3
Keywords: mktime gmmktime |
-------------------------------------+--------------------------------------
Hi
I'm runnig (Version: 4.2 GA)
I was receiving this message:
Warning: mktime(): Windows does not support negative values for this
function in C:\Program
Files\vtigerCRM4_2\apache\htdocs\vtigerCRM\modules\Activities\OpenListView.php
on line 152
And I Solved using this FUNCTION:
http://us2.php.net/manual/en/function.gmmktime.php#49954
I put this function at "include/wintime.php"
I changed line 152 to:
$date_diff= win_gmmktime
(0,0,0,date("$curr[1]"),date("$curr[2]"),date("$curr[0]")) - win_gmmktime
(0,0,0,date("$end[1]"),date("$end[2]"),date("$end[0]"));
And add at line 26:
require_once("include/wintime.php");
Thanks
Charles Holmes Jacome
--
Ticket URL: <http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/759>
vtiger development <http://vtiger.fosslabs.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list