show locale date, less confusing (#131)

This commit is contained in:
Aria Moradi
2022-02-20 23:49:37 +03:30
committed by GitHub
parent aaaadebfb3
commit 08d44e38fc

View File

@@ -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 | HTMLElement>(null);