Killing dst_offset_for_year().

This commit is contained in:
defacer
2005-03-23 02:13:00 +00:00
parent 62a73d8949
commit 0c478e1085
+1 -5
View File
@@ -888,7 +888,7 @@ function get_user_timezone_preset() {
for($i = 1970; $i < 2030; ++$i) {
$changes = dst_changes_for_year($i, $preset);
if($changes['activate'] != 0) {
$USER->dstoffsets[$changes['activate']] = dst_offset_for_year($i, $preset);
$USER->dstoffsets[$changes['activate']] = $preset->dstoff * MINSECS;
}
if($changes['deactivate'] != 0) {
$USER->dstoffsets[$changes['deactivate']] = 0;
@@ -902,10 +902,6 @@ function get_user_timezone_preset() {
return $preset;
}
function dst_offset_for_year($year, $dstpreset) {
return $dstpreset->apply_offset * MINSECS;
}
function dst_changes_for_year($year, $dstpreset) {
$monthdayactivate = find_day_in_month($dstpreset->activate_index, $dstpreset->activate_day, $dstpreset->activate_month, $year);