Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone committed Jun 17, 2023
1 parent baa75e7 commit 3c10441
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/features/Timeline/TimelineArticleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const TimelineArticleCard = ({
showYear = false,
...props
}: TimelineArticleCardProps): JSX.Element => {
const date = formatDateTime(item.date, showYear ? "yy/MM/dd" : "M月d日");
const date = formatDateTime(item.date, showYear ? "yyyy/MM/dd" : "M月d日");

return (
<TimelineCardBase
Expand Down
4 changes: 2 additions & 2 deletions src/features/Timeline/TimelineCertificationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export const TimelineCertificationCard = ({
}: TimelineCertificationCardProps): JSX.Element => {
const dateFormatted = formatDateTime(
item.date,
showYear ? "yy/MM/dd" : "M月d日"
showYear ? "yyyy/MM/dd" : "M月d日"
);
const endDateFormatted = formatDateTime(
item.endDate,
showYear ? "yy/MM/dd" : "yy年M月d日"
showYear ? "yyyy/MM/dd" : "yy年M月d日"
);
const subTitle =
item.endDate !== "" ? (
Expand Down
2 changes: 1 addition & 1 deletion src/features/Timeline/TimelineHistoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const TimelineHistoryCard = ({
showYear = false,
...props
}: TimelineHistoryCardProps): JSX.Element => {
const date = formatDateTime(item.date, showYear ? "yy/MM" : "M月");
const date = formatDateTime(item.date, showYear ? "yyyy/MM" : "M月");

return (
<TimelineCardBase
Expand Down
2 changes: 1 addition & 1 deletion src/features/Timeline/TimelineMdxCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const TimelineMdxCard = ({
showYear = false,
...props
}: TimelineMdxCardProps): JSX.Element => {
const date = formatDateTime(item.date, showYear ? "yy/MM/dd" : "M月d日");
const date = formatDateTime(item.date, showYear ? "yyyy/MM/dd" : "M月d日");

return (
<TimelineCardBase
Expand Down
2 changes: 1 addition & 1 deletion src/features/Timeline/TimelineOssCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const TimelineOssCard = ({
showYear = false,
...props
}: TimelineOssCardProps): JSX.Element => {
const date = formatDateTime(item.date, showYear ? "yy/MM" : "M月");
const date = formatDateTime(item.date, showYear ? "yyyy/MM" : "M月");

return (
<TimelineCardBase
Expand Down
4 changes: 2 additions & 2 deletions src/features/Timeline/TimelineProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export const TimelineProjectCard = ({
}: TimelineProjectCardProps): JSX.Element => {
const endDateFormat =
item.fields.dateYear === item.fields.endDateYear ? "M月" : "yy年M月";
const dateFormatted = formatDateTime(item.date, showYear ? "yy/MM" : "M月");
const dateFormatted = formatDateTime(item.date, showYear ? "yyyy/MM" : "M月");
const endDateFormatted = formatDateTime(
item.endDate,
showYear ? "yy/MM" : endDateFormat
showYear ? "yyyy/MM" : endDateFormat
);
const subTitle =
item.endDate !== "" ? (
Expand Down
2 changes: 1 addition & 1 deletion src/features/Timeline/TimelineSlideCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const TimelineSlideCard = ({
showYear = false,
...props
}: TimelineSlideCardProps): JSX.Element => {
const date = formatDateTime(item.date, showYear ? "yy/MM/dd" : "M月d日");
const date = formatDateTime(item.date, showYear ? "yyyy/MM/dd" : "M月d日");

return (
<TimelineCardBase
Expand Down

0 comments on commit 3c10441

Please sign in to comment.