Projet

Général

Profil

Tâche #35800

Scénario #35784: EOLE 2.10 : Traquer les warnings python dans le code EOLE

DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version

Ajouté par Joël Cuissinat il y a 4 mois. Mis à jour il y a 16 jours.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
07/03/2024
Echéance:
% réalisé:

100%

Restant à faire (heures):
0.0

Description

00:04:55.110             tests/test_era.py:14
00:04:55.110               /usr/share/amon/tests/test_era.py:14: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
00:04:55.110                 datetime.utcfromtimestamp(ts)).total_seconds() / 3600
00:04:55.113               /usr/share/era/tests/test_compiler.py:114: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
00:04:55.113                 datetime.utcfromtimestamp(ts)).total_seconds() / 3600)

Révisions associées

Révision ec52f49f (diff)
Ajouté par Benjamin Bohard il y a environ 2 mois

Utiliser les dates avec fuseau horaire explicite.

Ref #35800

Révision cf458aa5 (diff)
Ajouté par Benjamin Bohard il y a environ 2 mois

Utiliser les dates avec fuseau horaire explicite.

Ref #35800

Révision bbf50ec9 (diff)
Ajouté par Benjamin Bohard il y a environ 2 mois

Utiliser les dates avec fuseau horaire explicite.

Ref #35800

Révision 4c8bf238 (diff)
Ajouté par Benjamin Bohard il y a environ 2 mois

Utiliser les dates avec fuseau horaire explicite.

Ref #35800

Révision 4e3e4b4c (diff)
Ajouté par Laurent Gourvenec il y a 18 jours

Importer les classes de datetime plutôt que tout datetime

Ref #35800

Historique

#1 Mis à jour par Benjamin Bohard il y a environ 2 mois

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Benjamin Bohard

#2 Mis à jour par Benjamin Bohard il y a environ 2 mois

  • Statut changé de En cours à À valider

#3 Mis à jour par Laurent Gourvenec il y a 17 jours

  • Statut changé de À valider à Résolu

#4 Mis à jour par Joël Cuissinat il y a 17 jours

  • Statut changé de Résolu à Fermé
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) mis à 0.0

OK

Formats disponibles : Atom PDF