Skip to content

Commit

Permalink
update meme October (#608)
Browse files Browse the repository at this point in the history
Co-authored-by: lq0-github <[email protected]>
  • Loading branch information
xieqiancaosissi and lq0-github authored Sep 27, 2024
1 parent 582463e commit 21a7cc2
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 207 deletions.
8 changes: 6 additions & 2 deletions src/components/meme/countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ const Countdown = ({ onCountdownFinish }) => {
const [countdownFinished, setCountdownFinished] = useState(false);
const is_mobile = isMobile();
useEffect(() => {
const targetDate = new Date(Date.UTC(new Date().getUTCFullYear(), 8, 1));
const endDate = new Date(Date.UTC(new Date().getUTCFullYear(), 8, 5));
const targetDate = new Date(
Date.UTC(new Date().getUTCFullYear(), 9, 1, 0, 0, 0)
);
const endDate = new Date(
Date.UTC(new Date().getUTCFullYear(), 9, 5, 0, 0, 0)
);
const updateCountdown = () => {
const nowUtc = Date.now();
if (nowUtc >= endDate.getTime()) {
Expand Down
Loading

0 comments on commit 21a7cc2

Please sign in to comment.