浏览代码

fix: fixed issue with banned view

Kristian Vos 5 年之前
父节点
当前提交
b03e90c6eb
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      frontend/components/pages/Banned.vue

+ 3 - 1
frontend/components/pages/Banned.vue

@@ -4,7 +4,9 @@
 		<i class="material-icons">not_interested</i>
 		<h4>
 			You are banned for
-			<strong>{{ formatDistance(ban.expiresAt, Date.now()) }}</strong>
+			<strong>{{
+				formatDistance(new Date(ban.expiresAt), Date.now())
+			}}</strong>
 		</h4>
 		<h5 class="reason">
 			<strong>Reason: </strong>