Commit 2e269e91 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] HistoriqueAwareTrait : méthodes getDateTime() et getDate() pas...

[FIX] HistoriqueAwareTrait : méthodes getDateTime() et getDate() pas cohérentes avec getHistoCreation().
parent dc2e9092
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
Journal des modifications
=========================

7.0.1
-----
- [FIX] HistoriqueAwareTrait : méthodes getDateTime() et getDate() pas cohérentes avec getHistoCreation().

7.0.0
-----
- [Fix] Correction du problème de UserServiceFactory faisant appel à une méthode inconnue "setUsernameField" dans UserService
+4 −4
Original line number Diff line number Diff line
@@ -161,13 +161,13 @@ trait HistoriqueAwareTrait
        return "Aucune donnée d'historisation";
    }

    public function getDateTime(): string
    public function getDateTime(): ?string
    {
        return $this->getHistoCreation()->format('d/m/Y à H:i');
        return $this->getHistoCreation()?->format('d/m/Y à H:i');
    }

    public function getDate(): string
    public function getDate(): ?string
    {
        return $this->getHistoCreation()->format('d/m/Y');
        return $this->getHistoCreation()?->format('d/m/Y');
    }
}
 No newline at end of file