Skip to content

Commit

Permalink
fix: iOS timestamp 오류 해결 (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiacho authored Mar 2, 2024
1 parent a276f02 commit 7e3652d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useCheckTime.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';

export default function useCheckTime() {
const START_DATE = new Date('2024-03-02:01:30');
const START_DATE = new Date('2024-03-02 15:00:00');
const [timeDiff, setTimeDiff] = useState<number>(START_DATE.getTime() - Date.now());

useEffect(()=>{
Expand Down
2 changes: 1 addition & 1 deletion src/views/MainPage/components/TopBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useIsMobile } from '@src/hooks/useDevice';
import useFetch from '../../hooks/useFetch';

export default function TopBanner() {
const TARGET_DATE = new Date('2024-03-08:18:00');
const TARGET_DATE = new Date('2024-03-08 18:00:00');
const isMobile = useIsMobile();
const CHANGE_POSITION = isMobile ? 495 : 605;
const data = useFetch(); // 방문자 조회
Expand Down

0 comments on commit 7e3652d

Please sign in to comment.