Fix date parsing in popolemploi

Signed-off-by: Raphaël Rigo <devel-git@syscall.eu>
This commit is contained in:
Raphaël Rigo 2014-03-26 12:32:53 +01:00 committed by Florent
commit 72ccdad49e

View file

@ -49,7 +49,7 @@ class SearchPage(BasePage):
advert.society_name = society[0].text
advert.place = u'%s' % self.parser.select(row, 'td[@headers="lieu"]', 1, method='xpath').text_content()
date = self.parser.select(row, 'td[@headers="dateEmission"]', 1, method='xpath')
advert.publication_date = dateutil.parser.parse(date.text).date()
advert.publication_date = dateutil.parser.parse(date.text, dayfirst=True).date()
return advert