Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

FIX for fatal error: invalid date format problem!

Quote Reply
FIX for fatal error: invalid date format problem!
I have read many posts in here about the nph-build.cgi script returning the error fatal error: invalid date format... yadayada... but nobody has yet posted a good solution to the problem. I had the same problem occur and here is the skinny....

The basic problem has been established... it is that when you (or your server host) upgrades to Perl version 5.006 it does not correctly render the Time::Local subroutine which is called from various scripts in links 2.0.

Strangly enough the solution is absurdely simple. In your links.cfg script you would make one alteration... you simply add a 1 to the end of the $year

So for example on (my line 292) in links.cfg It would look like:
$time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year1);

instead of:
$time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year);

Just do this and it should solve all of your problems.

It's not really y2k related, but more y2k.1 related problem. :)

The year is sent as a three digit variable in the new perl configuration. So unfortunately, you will actually have to change this each year... i.e. next year to a 2... but it's the best I could come up with for now!
Good luck.


Subject Author Views Date
Thread FIX for fatal error: invalid date format problem! designerx 10297 Jan 25, 2001, 4:06 PM
Thread Re: FIX for fatal error: invalid date format problem!
Stealth 10036 Jan 26, 2001, 8:05 AM
Thread Re: FIX for fatal error: invalid date format problem!
Thomas. 10052 Feb 19, 2001, 6:21 AM
Post Re: FIX for fatal error: invalid date format problem!
Stealth 10031 Feb 19, 2001, 7:38 AM
Post Re: FIX for fatal error: invalid date format problem!
lindev 10016 Mar 2, 2001, 5:30 AM
Post Re: [designerx] FIX for fatal error: invalid date format problem!
Sanguinarius 9741 Dec 14, 2002, 5:27 PM
Post Post deleted by felicin
felicin 9394 Jan 12, 2003, 2:47 PM
Post Re: [designerx] FIX for fatal error: invalid date format problem!
rcull 9171 Sep 28, 2003, 9:04 PM
Thread Re: [designerx] FIX for fatal error: invalid date format problem!
rcull 9246 Oct 4, 2003, 7:27 AM
Thread Re: [rcull] FIX for fatal error: invalid date format problem!
Andy 9121 Oct 20, 2003, 7:22 AM
Thread Re: [Andy] FIX for fatal error: invalid date format problem!
rcull 9160 Oct 20, 2003, 4:36 PM
Thread Re: [rcull] FIX for fatal error: invalid date format problem!
rcull 9064 Nov 25, 2003, 7:21 PM
Post Re: [rcull] FIX for fatal error: invalid date format problem!
memobug 9003 Nov 28, 2003, 3:16 AM