Project

General

Profile

Development #41327

family : mauvaise gestion des dates de paiement

Added by Benjamin Dauvergne about 2 months ago. Updated about 2 months ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
03 Apr 2020
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Le endpoint pay_invoice fait un get_datetime() (fonction locale) sur transaction_date qui est une date UTC et get_datetime() fait un bête strptime() puis make_aware(), i.e. il va considérer la date comme étant à l'heure locale.

0002-family-always-localize-received-datetime-41327.patch View (1.19 KB) Benjamin Dauvergne, 04 Apr 2020 12:02 PM

0001-family-PEP8-style-41327.patch View (11.8 KB) Benjamin Dauvergne, 04 Apr 2020 12:02 PM


Related issues

Related to Publik - Development #41317: système de paiment : gestion de la date de la transaction Résolu (à déployer) 03 Apr 2020

Associated revisions

Revision b75d7e1c (diff)
Added by Benjamin Dauvergne about 2 months ago

family: PEP8, style (#41327)

Revision bdd7b78b (diff)
Added by Benjamin Dauvergne about 2 months ago

family: always localize received datetime (#41327)

History

#1 Updated by Benjamin Dauvergne about 2 months ago

  • Related to Development #41317: système de paiment : gestion de la date de la transaction added

#2 Updated by Benjamin Dauvergne about 2 months ago

  • Assignee set to Benjamin Dauvergne

#3 Updated by Benjamin Dauvergne about 2 months ago

#4 Updated by Thomas Noël about 2 months ago

  • Status changed from Solution proposée to Solution validée

Pas mieux.

#5 Updated by Benjamin Dauvergne about 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit bdd7b78b4049a1f857e24b43c1d5651e291d3659
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Sat Apr 4 11:59:36 2020 +0200

    family: always localize received datetime (#41327)

commit b75d7e1cf12130ed414946fad117ca84761aaa34
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Sat Apr 4 11:57:20 2020 +0200

    family: PEP8, style (#41327)

#6 Updated by Frédéric Péters about 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF