I tried the suggested patch and still have the same problem. In V2.2.8, when adding a new member, if I leave the joining and expiry date fields blank, I don't get any dates.

Actually, I turned on mysql query logging, and the insert statement is inserting '0000-00-00' into the dateenrolled (joining) field and a null value into the expiry field.

If I swap date.pm back to the 2.2.7 version that uses DateManip, I get the expected behavior of today's date for the dateenrolled field and a auto-calculated date a year later for the expiry field.

Will I break anything else if I just run with the 2.2.7 date.pm for now? Or can anyone suggest a fix for the new version? I tried to find the block of code that is processing these two dates, and could not. I have v5.4 of Date-Calc and v5.44 of DateManip installed.

Thanks,
Rob

MJ Ray wrote:
"Mike Dalgity" <dalgity@htl.net> wrote:
  
Yep, both installed.  According to Henri-Damien C4::Date was changed to use
Date::Calc in 2.2.8.  Looks something got broke somewhere...
    

The transition patch might be available from
http://cvs.savannah.nongnu.org/viewcvs/koha/C4/Date.pm?root=koha&r1=1.13.4.6&r2=1.13&only_with_tag=rel_2_2&makepatch=1&diff_format=u

If you want to try applying it or reversing it, I wrote some notes on
patching at
http://lists.gnu.org/archive/html/koha-devel/2007-03/msg00092.html
(and then failed to apply a contributed patch promptly - I just broke
my CVS checkout - boo me!)

Regards,