Timothy J. Baek 1 年之前
父節點
當前提交
ebeaa24e9d
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/routes/(app)/admin/+page.svelte

+ 4 - 3
src/routes/(app)/admin/+page.svelte

@@ -165,9 +165,10 @@
 											<th scope="col" class="px-3 py-2"> {$i18n.t('Role')} </th>
 											<th scope="col" class="px-3 py-2"> {$i18n.t('Name')} </th>
 											<th scope="col" class="px-3 py-2"> {$i18n.t('Email')} </th>
-											<th scope="col" class="px-3 py-2"> {$i18n.t('Created at')} </th>
 											<th scope="col" class="px-3 py-2"> {$i18n.t('Last Active')} </th>
 
+											<th scope="col" class="px-3 py-2"> {$i18n.t('Created at')} </th>
+
 											<th scope="col" class="px-3 py-2 text-right" />
 										</tr>
 									</thead>
@@ -225,11 +226,11 @@
 												<td class=" px-3 py-2"> {user.email} </td>
 
 												<td class=" px-3 py-2">
-													{dayjs(user.created_at * 1000).format($i18n.t('MMMM DD, YYYY'))}
+													{dayjs(user.last_active_at * 1000).fromNow()}
 												</td>
 
 												<td class=" px-3 py-2">
-													{dayjs(user.last_active_at * 1000).fromNow()}
+													{dayjs(user.created_at * 1000).format($i18n.t('MMMM DD, YYYY'))}
 												</td>
 
 												<td class="px-3 py-2 text-right">