@@ -, +, @@ a patron --- Koha/Patron.pm | 1 + Koha/Patrons/Import.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -195,6 +195,7 @@ sub store { # We don't want invalid dates in the db (mysql has a bad habit of inserting 0000-00-00) $self->dateofbirth(undef) unless $self->dateofbirth; $self->debarred(undef) unless $self->debarred; + $self->date_renewed(undef) unless $self->date_renewed; # Set default values if not set $self->sms_provider_id(undef) unless $self->sms_provider_id; --- a/Koha/Patrons/Import.pm +++ a/Koha/Patrons/Import.pm @@ -513,7 +513,7 @@ be formatted to the chosen date format. Populates the correctly formatted date o sub format_dates { my ($self, $params) = @_; - foreach my $date_type (qw(dateofbirth dateenrolled dateexpiry)) { + foreach my $date_type (qw(dateofbirth dateenrolled dateexpiry date_renewed)) { my $tempdate = $params->{borrower}->{$date_type} or next(); my $formatted_date = eval { output_pref( { dt => dt_from_string( $tempdate ), dateonly => 1, dateformat => 'iso' } ); }; --