- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Parse error: syntax error, unexpected ';' in /in/lMirv on line 7
Process exited with code 255.
<?php
$local = new DateTimeZone('America/Los_Angeles');
$totSecs = $local->getOffset(new DateTime());
$totSecs -= .5 * 3600;
$hrs = floor($totSecs / (60 * 60));
$mins = floor(($totSecs - $hrs * 60 * 60) / 60);
echo substr('0' . $hrs . ':' . $mins;