mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 20:14:19 +01:00
time_compare mktime was returning -1 on some systems, changed year to 70
This commit is contained in:
parent
4ad4403de4
commit
bcf619e608
@ -107,8 +107,8 @@ class calendar extends calendar_
|
||||
// NOT PART OF THE ORIGINAL MCAL SPECS.
|
||||
function time_compare($a_hour,$a_minute,$a_second,$b_hour,$b_minute,$b_second)
|
||||
{
|
||||
$a_time = mktime(intval($a_hour),intval($a_minute),intval($a_second),0,0,0);
|
||||
$b_time = mktime(intval($b_hour),intval($b_minute),intval($b_second),0,0,0);
|
||||
$a_time = mktime(intval($a_hour),intval($a_minute),intval($a_second),0,0,70);
|
||||
$b_time = mktime(intval($b_hour),intval($b_minute),intval($b_second),0,0,70);
|
||||
if($a_time == $b_time)
|
||||
{
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user