Having some unexpected behaviour with strtotime:
$d = '2.5'; // i.e. hours
$t = '2014-03-20 08:30:00'; // mysql datetime
$ut = strtotime($t); // value: 1395297000
$s = $d * 60 * 60; // duration in seconds: 9000
$plusHrs = strtotime($t.' +'.$d.' hours'); // value: 1395315000
$plusSec = strtotime($t.' +'.$s.' seconds'); // value: 1395306000
Expected behaviour would be that $plusHrs = $plusSec. This happens regardless of what date is input, which means it's not a daylight saving issue.
Is this a bug? (PHP v5.3.14)