Commit 4e207819 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 27372f2b
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
Journal des modifications
=========================

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

6.3.0
-----
- Rattrapage des évolutions dans unicaen/auth : aides de vues User*
+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