// Horde to set your current location, maybe with a google
// map?
}
-
if ($country != 'US') {
$params['units'] = 'metric';
}
throw new TimeObjects_Exception($location->getMessage());
}
- $date = strptime($forecast['update'], $prefs->getValue('date_format') . ' ' . ($prefs->getValue('twentyFour') ? '%H:%M' : '%I:%M %P'));
- $day = new Horde_Date(gmmktime($date['tm_hour'], $date['tm_min'], $date['tm_sec'], $date['tm_mon'] + 1, $date['tm_mday'], $date['tm_year'] + 1900));
-
+ $day = new Horde_Date($forecast['update']);
$objects = array();
foreach ($forecast['days'] as $which => $data) {
$day_end = clone $day;
$day->mday++;
}
-
return $objects;
}