projects
/
ferlib2koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b85ab4c
)
calculate next_year-10-31 as expiry date
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 29 Aug 2013 13:07:52 +0000
(15:07 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 29 Aug 2013 13:07:52 +0000
(15:07 +0200)
ferweb-import-report.pl
patch
|
blob
|
history
diff --git
a/ferweb-import-report.pl
b/ferweb-import-report.pl
index
926d7e2
..
d8e2fac
100755
(executable)
--- a/
ferweb-import-report.pl
+++ b/
ferweb-import-report.pl
@@
-5,9
+5,14
@@
use DBI;
use Data::Dump qw/dump/;
use Algorithm::CheckDigits;
use Text::Unaccent;
+use DateTime;
my $ferweb_csv = 'report_62836_1026_Aktivni_studenti.csv';
-my $new_dateexpiry = '2013-10-31';
+my $dt = DateTime->now()->add( years => 1 );
+$dt->set( month => 10, day => 31 ); # next year, 31.10.
+my $new_dateexpiry = $dt->ymd;
+
+warn "# new_dateexpiry: $new_dateexpiry\n";
die "$ferweb_csv : $!" unless -r $ferweb_csv;