Skip to content

Commit

Permalink
✏️ Fix safari date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dohyun-ko committed Jun 18, 2024
1 parent a2a1b64 commit 81f7e9e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
region: "eu",
});
</script>
<script type="module" crossorigin src="/assets/index-88f2520a.js"></script>
<script type="module" crossorigin src="/assets/index-fd0ed79f.js"></script>
<link rel="stylesheet" href="/assets/index-32718201.css">
</head>
<body>
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
region: "eu",
});
</script>
<script type="module" crossorigin src="/assets/index-88f2520a.js"></script>
<script type="module" crossorigin src="/assets/index-fd0ed79f.js"></script>
<link rel="stylesheet" href="/assets/index-32718201.css">
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions src/locales/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const main = {
url: "https://sites.google.com/view/gperigist",
job: "Research Member",
startedAt: "2023-07",
endedAt: "2024-3",
endedAt: "2024-03",
projects: [
{
name: "C Language Education",
Expand Down Expand Up @@ -271,8 +271,8 @@ export const main = {
{
name: "2024 KPMG Ideathon: 🥉 3rd place",
url: "https://github.com/gist-optima",
startedAt: "2024-1",
endedAt: "2024-2",
startedAt: "2024-01",
endedAt: "2024-02",
description:
"Participated in the [Samjong KPMG Ideathon](https://kpmgkr.notion.site/kpmgkr/2024-KPMG-1fcd8a808f3d4f36a5ae8ad6e9bc413e) and developed Docuflow, a platform implementing VCS for document work and streamlined-ai-search using LLM.",
whatIDid: ["Frontend development"],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/resume/components/OrganizationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const OrganizationCard = ({ organization }: OrganizationCardProps) => {

<Text>
{formatYearMonth(new Date(startedAt))} ~{" "}
{endedAt ? formatYearMonth(new Date(endedAt)) : "현재"}
{endedAt ? formatYearMonth(new Date(endedAt)) : "Now"}
</Text>
</Flex>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/resume/components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ProjectCard = ({ project }: ProjectCardProps) => {

<Text>
{formatYearMonth(new Date(startedAt))} ~{" "}
{endedAt ? formatYearMonth(new Date(endedAt)) : "현재"}
{endedAt ? formatYearMonth(new Date(endedAt)) : "Now"}
</Text>

<Spacer height={"10px"} />
Expand Down
4 changes: 3 additions & 1 deletion src/utils/dateFormats.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const formatYearMonth = (date: Date) => {
return `${date.getFullYear()}. ${date.getMonth() + 1}`;
const [year, month] = date.toISOString().split("T")[0].split("-");

return `${year}. ${month}`;
};

0 comments on commit 81f7e9e

Please sign in to comment.