diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-12-07 17:47:47 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-12-11 10:01:44 +0100 |
commit | 5fdbc2a1f96b477c420a858d835b4158b9eaffcf (patch) | |
tree | e75928516b6dc03737f1db75b4695f0b236a0747 /tools | |
parent | 12e25af7a84b1a6c958f0dcc5191e495e929f01c (diff) | |
download | ffmpeg-5fdbc2a1f96b477c420a858d835b4158b9eaffcf.tar.gz |
tools/general_assembly: avoid using DateTime->is_between()
It was added relatively recently and is not available everywhere.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/general_assembly.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/general_assembly.pl b/tools/general_assembly.pl index aa10384aef..0dafa82e27 100755 --- a/tools/general_assembly.pl +++ b/tools/general_assembly.pl @@ -72,7 +72,7 @@ sub get_date_range { # date when the regular update rule is first applied my $date_first_regular = DateTime->new(year => 2024); - if ($now->is_between($date_ga_rule, $date_first_regular)) { + if ($now > $date_ga_rule && $now < $date_first_regular) { return ($date_ga_rule->clone()->set_year($date_ga_rule->year - 3), $date_ga_rule); } @@ -123,7 +123,7 @@ foreach my $line (@shortlog) { foreach my $entry (@extra_members) { my $elected = $entry->[2]; - if ($date->is_between($elected, $elected->clone()->set_year($elected->year + 2))) { + if ($date > $elected && $date < $elected->clone()->set_year($elected->year + 2)) { $assembly{$entry->[0]} = $entry->[1]; } } |