ports/www/lightsquid/patches/patch-lightparser_pl

16 lines
451 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Fix date ranges
https://finisky.github.io/2021/01/03/lightsquidhardcodeyear.en/
Index: lightparser.pl
--- lightparser.pl.orig
+++ lightparser.pl
@@ -66,7 +66,7 @@ if ($skipurl eq "") {
$month=sprintf("%02d",$mon+1);;
my $filterdatestart=0;
-my $filterdatestop =timelocal(59,59,23,31,12-1,2020-1900)+1000;
+my $filterdatestop =timelocal(59,59,23,31,11,2100)+1000;
$fToday=1 if ($ARGV[0] eq "today");
$fToday=1 if ($ARGV[0] eq "yesterday");