Skip to content

Commit

Permalink
Fix: 날짜 포멧팅 형식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Oct 6, 2023
1 parent 2183a54 commit 11e8c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apis/notice/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const getWhalebe = async (): Promise<WhalebeData[]> => {
if (err) notificationToSlack('웨일비 조회 실패');
const whalebeData = res as WhalebeData[];
const today = new Date();
const todayString = `${today.getFullYear()}-${String(
const todayString = `${today.getFullYear()}.${String(
today.getMonth() + 1,
).padStart(2, '0')}-${String(today.getDate()).padStart(2, '0')}`;
).padStart(2, '0')}.${String(today.getDate()).padStart(2, '0')}`;

const filteredData = whalebeData
.filter((data) => data.date >= todayString)
Expand Down

0 comments on commit 11e8c12

Please sign in to comment.