From ffc141e4bee0a7ae005ada157ff7cff121e0b1d9 Mon Sep 17 00:00:00 2001 From: defacer Date: Fri, 8 Apr 2005 19:34:19 +0000 Subject: [PATCH] Don't add trivial timezone records in the db, we 're going to handle them manually. --- admin/dst_update.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/admin/dst_update.php b/admin/dst_update.php index ad64080aa41..9b318020264 100644 --- a/admin/dst_update.php +++ b/admin/dst_update.php @@ -26,22 +26,6 @@ $ddd = olson_todst($CFG->dataroot.'/temp/olson.txt'); execute_sql('TRUNCATE TABLE '.$CFG->prefix.'timezone'); -$timezone = new stdClass; -$timezone->year = 1970; -for($i = -13; $i <= 13; $i += .5) { - $timezone->gmtoff = $i * HOURSECS; - $timezone->name = get_string('timezoneunspecifiedlocation').' / GMT'; - $timezone->sortkey = 'UNSPECIFIED_'.sprintf('%05d', 13 * HOURSECS + $timezone->gmtoff); - if($i < 0) { - $timezone->name .= $i; - } - else if($i > 0) { - $timezone->name .= '+'.$i; - } - insert_record('timezone', $timezone); -} - - foreach($ddd as $rec) { print_object($rec); insert_record('timezone', $rec);