fix: timezone

This commit is contained in:
yzhe819
2023-04-03 00:52:53 +12:00
parent 89f9321f0e
commit b2c606ade4
+1 -1
View File
@@ -64,7 +64,7 @@ const Post = ({
{t("ago", {
time: date.dayjs
.duration(
date.dayjs(post?.createdAt).diff(date.dayjs(), "minute"),
date.dayjs(post?.createdAt).tz().diff(date.dayjs(), "minute"),
"minute",
)
.humanize(),