re-add date parsing
This commit is contained in:
parent
319fa34f8d
commit
a43f2cff1e
@ -117,11 +117,13 @@ sub dkb
|
||||
if (@units) {
|
||||
$info{$stock,'currency'} = $units[0]->as_text;
|
||||
};
|
||||
#my @dates = $parser->findnodes( '//span[@class="dkbPortraitDate"]');
|
||||
#if (@dates) {
|
||||
# #$info{$stock,'date'} = $dates[0]->as_text;
|
||||
# $quoter->store_date(\%info, $stock, {eurodate => $dates[0]->as_text});
|
||||
#};
|
||||
my @dates = $parser->findnodes( '//div[@class="exchangeLine"]/span');
|
||||
if (@dates) {
|
||||
my $tradedate = $dates[0]->as_text;
|
||||
$tradedate =~ s/.*(\d\d\.\d\d\.\d\d \d\d:\d\d).*/\1/g;
|
||||
$info{$stock,'date'} = $dates[0]->as_text;
|
||||
$quoter->store_date(\%info, $stock, {eurodate => $dates[0]->as_text});
|
||||
};
|
||||
$info{$stock,'timezone'} = 'Europe/Berlin';
|
||||
#$info{$stock,'currency'} = 'EUR';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user