No need of compatibility mode

This commit is contained in:
Laurent Destailleur 2012-06-05 12:52:25 +02:00
parent 07a6ee67e2
commit eb3484d6b6

View File

@ -106,7 +106,7 @@ function getServerTimeZoneInt($refgmtdate='now')
if (dol_stringtotime($_SESSION['dol_dst_first']) <= $gmtnow && $gmtnow < dol_stringtotime($_SESSION['dol_dst_second'])) $daylight=1;
else $daylight=0;
$tmp=dol_mktime(0,0,0,$monthref,$dayref,$yearref,false,0)-dol_mktime(0,0,0,$monthref,$dayref,$yearref,true,0)-($daylight*3600);
//return 'unknown'; // For true result (commented for compatibility result)
return 'unknown'; // For true result
}
elseif ($refgmtdate == 'summer')
{
@ -116,7 +116,7 @@ function getServerTimeZoneInt($refgmtdate='now')
if (dol_stringtotime($_SESSION['dol_dst_first']) <= dol_stringtotime($yearref.'-'.$monthref.'-'.$dayref) && dol_stringtotime($yearref.'-'.$monthref.'-'.$dayref) < dol_stringtotime($_SESSION['dol_dst_second'])) $daylight=1;
else $daylight=0;
$tmp=dol_mktime(0,0,0,$monthref,$dayref,$yearref,false,0)-dol_mktime(0,0,0,$monthref,$dayref,$yearref,true,0)-($daylight*3600);
//return 'unknown'; // For true result (commented for compatibility result)
return 'unknown'; // For true result
}
else $tmp=dol_mktime(0,0,0,1,1,1970);
}