Question
Sometimes (I have no clue how to reproduce this error) when I try to change and save a page, I get the following error message:
quote -->
Software error:
Month '12' out of range 0..11 at /home/users/httpd/twiki/lib/TWiki.pm line 1023
>
-- end of quote
I checked
MonthOutOfRangeWithRcsLite but this does not seem to be the same error. We are not using RCSLite.
The *.txt,v file says:
quote -->
head 1.4;
access;
symbols;
locks
www-data:1.4; strict;
1.4
date 2003.12.29.15.12.00; author guest; state Exp;
branches;
next 1.3;
>
-- end of quote
An additional problem seems to be the date -- its August, not December.
Environment
--
KlausNowikow - 26 Aug 2003
Correction
This one was my fault.
We used RCSLite before, and there I had an error, which I quickly "fixed" by changing line 1023 in TWiki.pm from
return timegm( $6, $5, $4, $3, $2-1, $year ); to
return timegm( $6, $5, $4, $3, $2, $year );
I didn't mean to waste your time. Sorry for that.
--
KlausNowikow - 26 Aug 2003
Answer
Closing the issue. Thanks for providing the solution.
--
TorbenGB - 27 Aug 2003
See patch at
SavingProblemsWithMonthOutOfRange
--
PeterThoeny - 01 Apr 2004