Skip to content

Commit 7d5d629

Browse files
committed
ui: add time to user fields
1 parent 0c0d5db commit 7d5d629

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/runtime/components/firebase/FirebaseListTable.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,21 +194,21 @@ const viewItem = (pointerEvent: PointerEvent, item: any) => {
194194
}}</NuxtLink>
195195
</template>
196196
<template #item.signupCompleted="{ item }">
197-
{{ formatDate(item.signupCompleted.toDate()) }}
197+
{{ formatDate(item.signupCompleted.toDate(), { type: 'datetime' }) }}
198198
</template>
199199
<template #item.firstActivity="{ item }">
200-
{{ formatDate(item.firstActivity.toDate()) }}
200+
{{ formatDate(item.firstActivity.toDate(), { type: 'datetime' }) }}
201201
</template>
202202
<template #item.lastActivity="{ item }">
203-
{{ formatDate(item.lastActivity.toDate()) }}
203+
{{ formatDate(item.lastActivity.toDate(), { type: 'datetime' }) }}
204204
</template>
205205
<template #item.subscribed="{ item }">
206-
{{ formatDate(item.subscribed.toDate()) }}
206+
{{ formatDate(item.subscribed.toDate(), { type: 'datetime' }) }}
207207
</template>
208208

209209
<!-- Shared slots -->
210210
<template #item.created="{ item }">
211-
{{ formatDate(item.created.toDate()) }}
211+
{{ formatDate(item.created.toDate(), { type: 'datetime' }) }}
212212
</template>
213213

214214
<!-- Bottom slot -->

src/runtime/pages/admin/users/[uid]/UserIndex.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ const firebaseConsoleUrl = computed(() =>
120120
<v-list-item>
121121
<v-list-item-title>Last Active</v-list-item-title>
122122
<v-list-item-subtitle>
123-
{{ formatDate(userDoc.lastActivity.toDate()) }}
123+
{{ formatDate(userDoc.lastActivity.toDate(), { type: 'datetime' }) }}
124124
</v-list-item-subtitle>
125125
</v-list-item>
126126
<v-list-item>
127127
<v-list-item-title>Created</v-list-item-title>
128128
<v-list-item-subtitle>
129-
{{ formatDate(userDoc.created.toDate()) }}
129+
{{ formatDate(userDoc.created.toDate(), { type: 'datetime' }) }}
130130
</v-list-item-subtitle>
131131
</v-list-item>
132132

133133
<v-list-item>
134134
<v-list-item-title>Last Updated</v-list-item-title>
135135
<v-list-item-subtitle>
136-
{{ formatDate(userDoc.lastUpdated.toDate()) }}
136+
{{ formatDate(userDoc.lastUpdated.toDate(), { type: 'datetime' }) }}
137137
</v-list-item-subtitle>
138138
</v-list-item>
139139

0 commit comments

Comments
 (0)