https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31143
--- Comment #32 from [email protected] --- (In reply to wainuiwitikapark from comment #31) > (In reply to David Nind from comment #30) > > I get this error message after I have updated some patrons to have > > 0000-00-00 dates - both before and after the patch. > > > > misc/maintenance/search_for_data_inconsistencies.pl > > Can't call method "time_zone" on an undefined value at > > /usr/lib/x86_64-linux-gnu/perl5/5.36/DateTime.pm line 1483. > > > > Without the patch and without any incorrect dates, the above message doesn't > > appear. > > > > After the patch and after the dates are fixed with the new script, I get (as > > expected): > > > > misc/maintenance/search_for_data_inconsistencies.pl -v > > == 0 invalid dates found == > > Thanks for testing and for your notes! > > - I changed a date to 0000-00-00 > - I ran misc/maintenance/search_for_data_inconsistencies.pl > -> I don't get that error > > - I added patch > - I changed a date to 0000-00-00 > - I ran misc/maintenance/search_for_data_inconsistencies.pl > -> I don't get that error > -> I get, as expected: > == 1 invalid dates found == > You may change the date with script: misc/cronjobs/fix_invalid_dates.pl (-c > -v) > - I then ran ./misc/cronjobs/fix_invalid_dates.pl -v > -> I got the following, as expected: > 1 invalid dates found > - I then ran ./misc/cronjobs/fix_invalid_dates.pl -c -v > -> I got the following, as expected: > 1 invalid dates found > 1 invalid dates fixed > - Running it again > -> I got, as expected: > 0 invalid dates found > 0 invalid dates fixed > - Then I checked the date in the db, and it has indeed been fixed (changed > to NULL) > > So yeah, I can't seem to replicate your issues :/ Oh sorry I have retested and can now replicate the issue -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
