show locale date, less confusing (#131)
This commit is contained in:
@@ -34,7 +34,7 @@ export default function ChapterCard(props: IProps) {
|
|||||||
chapter, triggerChaptersUpdate, downloadStatusString, showChapterNumber,
|
chapter, triggerChaptersUpdate, downloadStatusString, showChapterNumber,
|
||||||
} = props;
|
} = 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);
|
const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user