From 08d44e38fcd335ae138aff4cadcad44990551373 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sun, 20 Feb 2022 23:49:37 +0330 Subject: [PATCH] show locale date, less confusing (#131) --- src/components/chapter/ChapterCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chapter/ChapterCard.tsx b/src/components/chapter/ChapterCard.tsx index b58f8c83..81172673 100644 --- a/src/components/chapter/ChapterCard.tsx +++ b/src/components/chapter/ChapterCard.tsx @@ -34,7 +34,7 @@ export default function ChapterCard(props: IProps) { chapter, triggerChaptersUpdate, downloadStatusString, showChapterNumber, } = props; - const dateStr = chapter.uploadDate && new Date(chapter.uploadDate).toISOString().slice(0, 10); + const dateStr = chapter.uploadDate && new Date(chapter.uploadDate).toLocaleDateString(); const [anchorEl, setAnchorEl] = React.useState(null);