Suppression d'une trace inutile

This commit is contained in:
Jean-Marie Favreau 2024-12-29 17:15:59 +01:00
parent c9df18c822
commit fc86738ee3

View File

@ -1279,8 +1279,6 @@ class Event(models.Model):
and event_structure["last_modified"] is not None
):
d = datetime.fromisoformat(event_structure["last_modified"])
if d.year == 2024 and d.month > 2:
logger.warning("last modified {}".format(d))
if d.tzinfo is None or d.tzinfo.utcoffset(d) is None:
d = timezone.make_aware(d, timezone.get_default_timezone())
event_structure["modified_date"] = d