Projet

Général

Profil

Bug #52172

ValueError: day is out of range for month

Ajouté par Sentry Io il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
18 mars 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/39711/

ValueError: day is out of range for month
(5 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 495, in dispatch
    response = self.handle_exception(exc)
  File "rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "chrono/api/views.py", line 601, in get
    date_end = make_aware(datetime.datetime.combine(parse_date(date_end), datetime.time(0, 0)))
  File "django/utils/dateparse.py", line 64, in parse_date
    return datetime.date(**kw)

Fichiers

0001-api-fix-date-parsing-52172.patch (7,46 ko) 0001-api-fix-date-parsing-52172.patch Lauréline Guérin, 18 mars 2021 15:31

Révisions associées

Révision bbd93a1b (diff)
Ajouté par Lauréline Guérin il y a environ 3 ans

api: fix date parsing (#52172)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Projet changé de Suivi des traces à Chrono
#2

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Assigné à mis à Lauréline Guérin
#3

Mis à jour par Lauréline Guérin il y a environ 3 ans

#4

Mis à jour par Valentin Deniaud il y a environ 3 ans

  • Statut changé de Solution proposée à Solution validée
#5

Mis à jour par Valentin Deniaud il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit bbd93a1bec15c466949f5aa6ecbcd1cb4c6ad68d
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Thu Mar 18 15:30:51 2021 +0100

    api: fix date parsing (#52172)

#6

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF