"half hour timezones as requested on the list"

This commit is contained in:
Ralf Becker 2007-05-22 06:29:41 +00:00
parent da48c78fc2
commit 2c5582c15b

View File

@ -40,10 +40,10 @@
{
$format .= 'H:i';
}
for($i = -23; $i<24; $i++)
for($i = -23.5; $i < 24.0; $i += 0.5)
{
$t = time() + $i * 60*60;
$tz_offset[$i] = $i . ' ' . lang('hours').': ' . date($format,$t);
$t = time() + round($i * 3600);
$tz_offset[(string)$i] = sprintf('%3.1lf',$i) . ' ' . lang('hours').': ' . date($format,$t);
}
$date_formats = array(