Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Killing dst_offset_for_year().

  • Loading branch information...
commit 0c478e1085de6a0945ec6176b893add25e9843be 1 parent 62a73d8
defacer authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/moodlelib.php
View
6 lib/moodlelib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.