fix(doc-item): Formatierung von addedWhen und changedWhen mit toLocaleDateString
Ersetzte die Verwendung von `fDate()` und rohem `changedWhen` Rendering mit `toLocaleDateString('de-DE')`
für konsistente und lokalisierte Datumsformatierung in Dokumentinfo und Datumsanzeige.
This commit is contained in:
parent
3b8b9796fa
commit
074378335b
@ -79,7 +79,7 @@ export function DocItem({
|
||||
{[
|
||||
{ data: doc.addedWho, icon: 'solar:chat-round-dots-bold' },
|
||||
{ data: doc.changedWho, icon: 'solar:eye-bold' },
|
||||
{ data: doc.changedWhen, icon: 'solar:share-bold' },
|
||||
{ data: doc.changedWhen?.toLocaleDateString('de-DE'), icon: 'solar:share-bold' },
|
||||
].map((info, _index) => (
|
||||
<Box
|
||||
key={_index}
|
||||
@ -126,7 +126,7 @@ export function DocItem({
|
||||
}),
|
||||
}}
|
||||
>
|
||||
{fDate(doc.addedWhen)}
|
||||
{doc.addedWhen.toLocaleDateString('de-DE')}
|
||||
</Typography>
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user