Merge pull request #1928 from samelamin/fix_chat_time

fix date time bug on chat lists
This commit is contained in:
Yifei Zhang 2023-06-14 11:31:00 +08:00 committed by GitHub
commit dd5b9d420b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,9 +72,7 @@ export function ChatItem(props: {
<div className={styles["chat-item-count"]}>
{Locale.ChatItem.ChatItemCount(props.count)}
</div>
<div className={styles["chat-item-date"]}>
{new Date(props.time).toLocaleString()}
</div>
<div className={styles["chat-item-date"]}>{props.time}</div>
</div>
</>
)}