View | Details | Raw Unified | Return to bug 14985
Collapse All | Expand All

(-)a/C4/Members.pm (-1 / +1 lines)
Lines 2261-2267 sub GetMessages { Link Here
2261
    my @results;
2261
    my @results;
2262
2262
2263
    while ( my $data = $sth->fetchrow_hashref ) {
2263
    while ( my $data = $sth->fetchrow_hashref ) {
2264
        $data->{message_date_formatted} = eval { output_pref( { dt => dt_from_string( $data->{message_date} ), dateonly => 1, dateformat => 'iso' } ); };
2264
        $data->{message_date_formatted} = output_pref( { dt => dt_from_string( $data->{message_date} ), dateonly => 1, dateformat => 'iso' } );
2265
        push @results, $data;
2265
        push @results, $data;
2266
    }
2266
    }
2267
    return \@results;
2267
    return \@results;
(-)a/C4/Reserves.pm (-2 / +2 lines)
Lines 165-173 sub AddReserve { Link Here
165
165
166
    my $dbh     = C4::Context->dbh;
166
    my $dbh     = C4::Context->dbh;
167
167
168
    $resdate = eval { output_pref( { dt => dt_from_string( $resdate ), dateonly => 1 }); }
168
    $resdate = eval { output_pref( { dt => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' }); }
169
               if ( $resdate );
169
               if ( $resdate );
170
    $resdate = eval { output_pref( { dt => dt_from_string, dateonly => 1 }); }
170
    $resdate = eval { output_pref( { dt => dt_from_string, dateonly => 1, dateformat => 'iso' }); }
171
               unless ( $resdate );
171
               unless ( $resdate );
172
172
173
    if ($expdate) {
173
    if ($expdate) {
(-)a/C4/Search.pm (-1 / +1 lines)
Lines 2094-2100 sub searchResults { Link Here
2094
            {
2094
            {
2095
                $onloan_count++;
2095
                $onloan_count++;
2096
                my $key = $prefix . $item->{onloan} . $item->{barcode};
2096
                my $key = $prefix . $item->{onloan} . $item->{barcode};
2097
                $onloan_items->{$key}->{due_date} = eval { output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } ); };
2097
                $onloan_items->{$key}->{due_date} = output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } );
2098
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2098
                $onloan_items->{$key}->{count}++ if $item->{$hbranch};
2099
                $onloan_items->{$key}->{branchname}     = $item->{branchname};
2099
                $onloan_items->{$key}->{branchname}     = $item->{branchname};
2100
                $onloan_items->{$key}->{location}       = $shelflocations->{ $item->{location} };
2100
                $onloan_items->{$key}->{location}       = $shelflocations->{ $item->{location} };
(-)a/C4/Utils/DataTables/Members.pm (-2 / +1 lines)
Lines 142-148 sub search { Link Here
142
        ($patron->{overdues}, $patron->{issues}, $patron->{fines}) =
142
        ($patron->{overdues}, $patron->{issues}, $patron->{fines}) =
143
            GetMemberIssuesAndFines($patron->{borrowernumber});
143
            GetMemberIssuesAndFines($patron->{borrowernumber});
144
        if($patron->{dateexpiry} and $patron->{dateexpiry} ne '0000-00-00') {
144
        if($patron->{dateexpiry} and $patron->{dateexpiry} ne '0000-00-00') {
145
            $patron->{dateexpiry} = eval { output_pref( { dt => dt_from_string( $patron->{dateexpiry}), dateonly => 1, dateformat => 'iso' } ); };
145
            $patron->{dateexpiry} = output_pref( { dt => dt_from_string( $patron->{dateexpiry}), dateonly => 1, dateformat => 'iso' } );
146
        } else {
146
        } else {
147
            $patron->{dateexpiry} = '';
147
            $patron->{dateexpiry} = '';
148
        }
148
        }
149
- 

Return to bug 14985