When an item is added a field with added_date is stored
in the database. The date is fetched from 'localtime'
and converted. The month returned from localtime is
zero-based but the date stored in the database should
be 1-based.
Change from:
$l .= sprintf "added_date='%d-%02d-%02d',", $year+1900,
$month, $day;
to:
$l .= sprintf "added_date='%d-%02d-%02d',", $year+1900,
$month+1, $day;
in function edit_item in ClubsDb.pm
The upgrade to the new version should convert the date
format in the database.
At the moment this is not used but new functions will
depend on this to be correct. E.g. RFE 528049
https://sourceforge.net/tracker/index.php?func=detail&aid=528049&group_id=48364&atid=452853
Logged In: YES
user_id=478336
Implemented workaround in boooking;1.31 to get RFE 528049
working. Must be removed if this is corrected.