X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=insertdata.pl;h=ed55d7113609579426e9772ea0be7a2395fdfce3;hb=ab1294b661ee2fec8c896f123c7384206f713bd6;hp=81bce7b099d9cb44695d7616473652856d4466f3;hpb=c5b0795e36168f1825422c546792684b999bf3b8;p=koha_fer diff --git a/insertdata.pl b/insertdata.pl index 81bce7b099..ed55d71136 100755 --- a/insertdata.pl +++ b/insertdata.pl @@ -51,8 +51,8 @@ my $query="Select * from borrowers where borrowernumber=$data{'borrowernumber'}" my $sth=$dbh->prepare($query); $sth->execute; if (my $data=$sth->fetchrow_hashref){ - $data{'dateofbirth'}=format_date_in_iso($data{'dateofbirth'}); - $data{'joining'}=format_date_in_iso($data{'joining'}); + $data{'dateofbirth'}=format_date($data{'dateofbirth'}); + $data{'joining'}=format_date($data{'joining'}); $query="update borrowers set title='$data{'title'}',expiry='$data{'expiry'}', cardnumber='$data{'cardnumber'}',sex='$data{'sex'}',ethnotes='$data{'ethnicnotes'}', streetaddress='$data{'address'}',faxnumber='$data{'faxnumber'}',firstname='$data{'firstname'}', @@ -67,8 +67,8 @@ if (my $data=$sth->fetchrow_hashref){ # print $query; }else{ - $data{'dateofbirth'}=format_date_in_iso($data{'dateofbirth'}); - $data{'joining'}=format_date_in_iso($data{'joining'}); + $data{'dateofbirth'}=format_date($data{'dateofbirth'}); + $data{'joining'}=format_date($data{'joining'}); $query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber, firstname,altnotes,dateofbirth,contactname,emailaddress,textmessaging,dateenrolled,streetcity, altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname,