projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DID inventory/import / bulk DID orders - phase 2, RT12754
[freeside.git]
/
bin
/
import-did-inventory
diff --git
a/bin/import-did-inventory
b/bin/import-did-inventory
index
69125eb
..
70cf508
100644
(file)
--- a/
bin/import-did-inventory
+++ b/
bin/import-did-inventory
@@
-98,6
+98,7
@@
my $parser = new DateTime::Format::Natural( 'time_zone' => 'local' );
sub parsedt {
my ($dt,$min,$max) = (shift,shift,shift);
my $epoch = $parser->parse_datetime($dt);
sub parsedt {
my ($dt,$min,$max) = (shift,shift,shift);
my $epoch = $parser->parse_datetime($dt);
+ warn "dt=$dt min=$min max=$max epoch=$epoch\n";
return $epoch->epoch
if ($parser->success && $epoch->epoch >= $min && $epoch->epoch <= $max);
fatal("invalid date $dt (min=$min, max=$max)");
return $epoch->epoch
if ($parser->success && $epoch->epoch >= $min && $epoch->epoch <= $max);
fatal("invalid date $dt (min=$min, max=$max)");