Skip to content

Commit

Permalink
Merge pull request #845 from sparcs-kaist/844-main-page-time-bug
Browse files Browse the repository at this point in the history
#844 23:50~00:00 사이에 메인 페이지 접속 시 시간이 잘못 표시되는 이슈 해결
  • Loading branch information
malloc3141 authored Jan 21, 2025
2 parents 7ec55e8 + 3addd97 commit 520caf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/pages/Home/SelectDate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { useEffect, useState } from "react";

import Date from "./Date";

import { getToday10 } from "@/tools/moment";
import { getToday } from "@/tools/moment";
import theme from "@/tools/theme";

const getWeekDates = () => {
const today = getToday10();
const today = getToday();
const date = today.clone().subtract(1, "day");

return Array.apply(null, Array(8)).map((_, index) => {
Expand Down

0 comments on commit 520caf8

Please sign in to comment.