re-add date parsing

This commit is contained in:
Matthias Merz 2019-04-25 21:54:15 +02:00
parent 319fa34f8d
commit a43f2cff1e

View File

@ -117,11 +117,13 @@ sub dkb
if (@units) { if (@units) {
$info{$stock,'currency'} = $units[0]->as_text; $info{$stock,'currency'} = $units[0]->as_text;
}; };
#my @dates = $parser->findnodes( '//span[@class="dkbPortraitDate"]'); my @dates = $parser->findnodes( '//div[@class="exchangeLine"]/span');
#if (@dates) { if (@dates) {
# #$info{$stock,'date'} = $dates[0]->as_text; my $tradedate = $dates[0]->as_text;
# $quoter->store_date(\%info, $stock, {eurodate => $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,'timezone'} = 'Europe/Berlin';
#$info{$stock,'currency'} = 'EUR'; #$info{$stock,'currency'} = 'EUR';
} }