@@ -, +, @@ if (exists $item->{'timestamp'}) { delete $item->{'timestamp'}; } --- Koha/Item.pm | 4 +--- Koha/Object.pm | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) --- a/Koha/Item.pm +++ a/Koha/Item.pm @@ -148,9 +148,7 @@ sub store { $self->permanent_location( $self->location ); } - if ( $self->timestamp ) { - $self->timestamp(dt_from_string); # Maybe move this to Koha::Object->store? - } + $self->timestamp(undef) if $self->timestamp; # Maybe move this to Koha::Object->store? C4::Biblio::ModZebra( $self->biblionumber, "specialUpdate", "biblioserver" ); --- a/Koha/Object.pm +++ a/Koha/Object.pm @@ -151,6 +151,12 @@ sub store { $self->_result()->set_column($col => $columns_info->{$col}->{default_value}); } } + elsif ( not defined $self->$col + && $columns_info->{$col}->{datetime_undef_if_invalid} ) + { + # timestamp + $self->$col( $columns_info->{$col}->{default_value} ); + } } } --