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

(-)a/C4/NewsChannels.pm (-1 / +1 lines)
Lines 134-140 sub get_opac_new { Link Here
134
    $sth->execute($idnew);
134
    $sth->execute($idnew);
135
    my $data = $sth->fetchrow_hashref;
135
    my $data = $sth->fetchrow_hashref;
136
    $data->{$data->{'lang'}} = 1 if defined $data->{lang};
136
    $data->{$data->{'lang'}} = 1 if defined $data->{lang};
137
    $data->{expirationdate} = output_pref({ dt => dt_from_string( $data->{expirationdate} ), dateonly => 1 });
137
    $data->{expirationdate} = output_pref({ dt => dt_from_string( $data->{expirationdate} ), dateonly => 1 }) if ( $data->{expirationdate} );
138
    $data->{timestamp}      = output_pref({ dt => dt_from_string( $data->{timestamp} ), dateonly => 1 }) ;
138
    $data->{timestamp}      = output_pref({ dt => dt_from_string( $data->{timestamp} ), dateonly => 1 }) ;
139
    return $data;
139
    return $data;
140
}
140
}
(-)a/tools/koha-news.pl (-2 / +4 lines)
Lines 40-46 my $cgi = new CGI; Link Here
40
my $id             = $cgi->param('id');
40
my $id             = $cgi->param('id');
41
my $title          = $cgi->param('title');
41
my $title          = $cgi->param('title');
42
my $new            = $cgi->param('new');
42
my $new            = $cgi->param('new');
43
my $expirationdate = output_pref({ dt => dt_from_string( scalar $cgi->param('expirationdate') ), dateformat => 'iso', dateonly => 1 });
43
my $expirationdate;
44
if ( scalar $cgi->param('expirationdate') ) {
45
    $expirationdate = output_pref({ dt => dt_from_string( scalar $cgi->param('expirationdate') ), dateformat => 'iso', dateonly => 1 });
46
}
44
my $timestamp      = output_pref({ dt => dt_from_string( scalar $cgi->param('timestamp') ), dateformat => 'iso', dateonly => 1 });
47
my $timestamp      = output_pref({ dt => dt_from_string( scalar $cgi->param('timestamp') ), dateformat => 'iso', dateonly => 1 });
45
my $number         = $cgi->param('number');
48
my $number         = $cgi->param('number');
46
my $lang           = $cgi->param('lang');
49
my $lang           = $cgi->param('lang');
47
- 

Return to bug 16550