0001-toulouse_axel-fix-date-parsing-38124.patch
passerelle/contrib/toulouse_axel/models.py | ||
---|---|---|
58 | 58 |
if not data.text: |
59 | 59 |
return data |
60 | 60 |
value = datetime.datetime.strptime(data.text, '%d/%m/%Y').strftime('%Y-%m-%d') |
61 |
data._replace(text=value) |
|
62 |
return data |
|
61 |
return xmlschema.ElementData(tag=data.tag, text=value, content=data.content, attributes=data.attributes) |
|
63 | 62 | |
64 | 63 | |
65 | 64 |
class AxelError(Exception): |
66 |
- |