Index: Apache-ASP-2.62/lib/Apache/ASP/Date.pm
===================================================================
--- Apache-ASP-2.62.orig/lib/Apache/ASP/Date.pm
+++ Apache-ASP-2.62/lib/Apache/ASP/Date.pm
@@ -167,15 +167,15 @@ sub str2time ($;$)
# Then we check if the year is acceptable
return undef if $yr > 99 && $yr < 1900; # We ignore these years
$yr += 100 if $yr < 50; # a stupid thing to do???
- $yr -= 1900 if $yr >= 1900;
- # The $yr is now relative to 1900 (as expected by timelocal())
+ $yr += 1900 if $yr < 1000;
+ # The $yr is now absolute 4-digit (as expected by timelocal())
# timelocal() seems to go into an infinite loop if it is given out
# of range parameters. Let's check the year at least.
- # Epoch counter maxes out in year 2038, assuming "time_t" is 32 bit
- return undef if $yr > 138;
- return undef if $yr < 70; # 1970 is Unix epoch
+ # 32bit epoch counter maxes out in year 2038, but "time_t" is 64 bit on most systems now
+ #return undef if $yr > 2038;
+ return undef if $yr < 1970; # 1970 is Unix epoch
# Compensate for AM/PM
if ($aorp) {