Skip to content

Commit 08d44e3

Browse files
authored
show locale date, less confusing (#131)
1 parent aaaadeb commit 08d44e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/chapter/ChapterCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function ChapterCard(props: IProps) {
3434
chapter, triggerChaptersUpdate, downloadStatusString, showChapterNumber,
3535
} = props;
3636

37-
const dateStr = chapter.uploadDate && new Date(chapter.uploadDate).toISOString().slice(0, 10);
37+
const dateStr = chapter.uploadDate && new Date(chapter.uploadDate).toLocaleDateString();
3838

3939
const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);
4040

0 commit comments

Comments
 (0)