Lines 29-38
BEGIN {
Link Here
|
29 |
} |
29 |
} |
30 |
|
30 |
|
31 |
use C4::Context; |
31 |
use C4::Context; |
32 |
use C4::Dates qw/format_date format_date_in_iso/; |
|
|
33 |
use C4::Debug; |
32 |
use C4::Debug; |
34 |
use C4::Serials; |
33 |
use C4::Serials; |
35 |
use C4::Log; |
34 |
use C4::Log; |
|
|
35 |
use Koha::DateUtils; |
36 |
|
36 |
|
37 |
use Date::Calc qw/Date_to_Days check_date/; |
37 |
use Date::Calc qw/Date_to_Days check_date/; |
38 |
use Getopt::Long; |
38 |
use Getopt::Long; |
Lines 119-125
while ( my $issue = $sth->fetchrow_hashref ) {
Link Here
|
119 |
|
119 |
|
120 |
if ( $subscription && $publisheddate && $publisheddate ne "0000-00-00" ) { |
120 |
if ( $subscription && $publisheddate && $publisheddate ne "0000-00-00" ) { |
121 |
my $nextpublisheddate = GetNextDate( $subscription, $publisheddate ); |
121 |
my $nextpublisheddate = GetNextDate( $subscription, $publisheddate ); |
122 |
my $today = format_date_in_iso( C4::Dates->new()->output() ); |
122 |
my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
123 |
|
123 |
|
124 |
if ( $nextpublisheddate && $today ) { |
124 |
if ( $nextpublisheddate && $today ) { |
125 |
my ( $year, $month, $day ) = split( /-/, $nextpublisheddate ); |
125 |
my ( $year, $month, $day ) = split( /-/, $nextpublisheddate ); |