Treat 'max' as 'only' in the "until" field. This removes ~1500 useless records.
This commit is contained in:
+2
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user