lokalisierung

This commit is contained in:
Bastian Wagner
2026-03-12 15:01:37 +01:00
parent c01b27df40
commit fbfbbf2b1a
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
export class KeyHandoverDto { export class KeyHandoverDto {
handoverId!: string; handoverId!: string;
handoverDate!: Date; handoverDate!: string;
place!: string; place!: string;
giverName!: string; giverName!: string;

View File

@@ -106,7 +106,7 @@ export class PdfService {
justify-content: space-between; justify-content: space-between;
"> ">
<span>Übergabeprotokoll</span> <span>Übergabeprotokoll</span>
<span>${new Date().toLocaleString()}</span> <span>${new Date().toLocaleString("de-DE")}</span>
</div> </div>
`, `,
}); });
@@ -208,7 +208,7 @@ export class PdfService {
<div class="section-title">Übergabedaten</div> <div class="section-title">Übergabedaten</div>
<div class="row"> <div class="row">
<span class="label">Datum der Übergabe:</span> <span class="label">Datum der Übergabe:</span>
<span class="value">${this.escapeHtml(new Date(dto.handoverDate).toLocaleDateString())}</span> <span class="value">${this.escapeHtml(new Date(dto.handoverDate).toLocaleDateString("de-DE"))}</span>
</div> </div>
<div class="row" style="display: none"> <div class="row" style="display: none">
<span class="label">Ort:</span> <span class="label">Ort:</span>