fix: unify date formatting and add missing updated_at timestamp
Both organisation pages now use the same date format: "14 april 2026 om 01:11 uur". Added missing "Gewijzigd op" timestamp to the organizer organisation page header. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -118,11 +118,10 @@ function getInitials(name: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function formatDate(iso: string) {
|
function formatDate(iso: string) {
|
||||||
return new Date(iso).toLocaleDateString('nl-NL', {
|
const d = new Date(iso)
|
||||||
year: 'numeric',
|
const date = d.toLocaleDateString('nl-NL', { day: 'numeric', month: 'long', year: 'numeric' })
|
||||||
month: 'long',
|
const time = d.toLocaleTimeString('nl-NL', { hour: '2-digit', minute: '2-digit' })
|
||||||
day: 'numeric',
|
return `${date} om ${time} uur`
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function openEditRole(member: Member) {
|
function openEditRole(member: Member) {
|
||||||
@@ -237,6 +236,7 @@ function confirmRevokeInvitation() {
|
|||||||
</div>
|
</div>
|
||||||
<span class="text-caption text-medium-emphasis">
|
<span class="text-caption text-medium-emphasis">
|
||||||
Aangemaakt op {{ formatDate(organisation.created_at) }}
|
Aangemaakt op {{ formatDate(organisation.created_at) }}
|
||||||
|
· Gewijzigd op {{ formatDate(organisation.updated_at) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<VBtn
|
<VBtn
|
||||||
|
|||||||
@@ -197,13 +197,10 @@ function showSnackbar(message: string, color: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function formatDate(iso: string): string {
|
function formatDate(iso: string): string {
|
||||||
return new Date(iso).toLocaleDateString('nl-NL', {
|
const d = new Date(iso)
|
||||||
day: '2-digit',
|
const date = d.toLocaleDateString('nl-NL', { day: 'numeric', month: 'long', year: 'numeric' })
|
||||||
month: '2-digit',
|
const time = d.toLocaleTimeString('nl-NL', { hour: '2-digit', minute: '2-digit' })
|
||||||
year: 'numeric',
|
return `${date} om ${time} uur`
|
||||||
hour: '2-digit',
|
|
||||||
minute: '2-digit',
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user