Projet

Général

Profil

0001-toulouse_axel-fix-date-parsing-38124.patch

Lauréline Guérin, 03 décembre 2019 15:41

Télécharger (996 octets)

Voir les différences:

Subject: [PATCH 1/2] toulouse_axel: fix date parsing (#38124)

 passerelle/contrib/toulouse_axel/models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
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
-