Project

General

Profile

Development #41325

Toulouse Axel - timezone de la date 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

Les dates de paiement envoyée par Combo sont vraisemblablement en UTC, est-on certain que ce soit le cas aussi coté Axel (j'aurai fortement pensé que c'était heure locale); dans ce cas il y a une conversion à faire.

0001-toulouse_axel-handle-timezone-on-transaction_date-41.patch View (3.37 KB) Benjamin Dauvergne, 07 Apr 2020 08:21 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 c1daf75d (diff)
Added by Benjamin Dauvergne about 2 months ago

toulouse_axel: handle timezone on transaction_date (#41325)

History

#1 Updated by Benjamin Dauvergne about 2 months ago

  • Assignee set to Lauréline Guerin

#2 Updated by Benjamin Dauvergne about 2 months ago

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

#5 Updated by Benjamin Dauvergne about 2 months ago

Allez go on envoie

pytz.utc.localize(
    datetime.strptime(transaction_date, '%Y-%m-%dT%H:M:%S')
).astimezone(
    pytz.timezone('Europe/Paris')
).strftime('%d/%m/%Y %H:%M:%S')
comme date de paiement.

#6 Updated by Benjamin Dauvergne about 2 months ago

#7 Updated by Lauréline Guerin about 2 months ago

  • Status changed from Solution proposée to Solution validée
  • Assignee changed from Lauréline Guerin to Benjamin Dauvergne

#8 Updated by Benjamin Dauvergne about 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit c1daf75d6c20cace248a8e0736f0a0646d43d300
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Tue Apr 7 20:20:33 2020 +0200

    toulouse_axel: handle timezone on transaction_date (#41325)

#9 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