Treat 'max' as 'only' in the "until" field. This removes ~1500 useless records.

This commit is contained in:
defacer
2005-03-23 01:57:15 +00:00
parent 0ed442f85c
commit aedcf71e33
+2 -4
View File
@@ -242,12 +242,10 @@ function olson_simple_rule_parser ($filename) {
$srs = ($save === '0') ? 'reset' : 'set';
if($to == 'only') {
if($to == 'only' || $to == 'max') {
// In both cases, a single entry for one year will suffice
$to = $from;
}
else if($to == 'max') {
$to = intval(date('Y'));
}
for($i = $from; $i <= $to; ++$i) {
$rules[$name][$i][$srs] = $rule;