Killing dst_offset_for_year().
This commit is contained in:
+1
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user