Skip to content

Commit

Permalink
dynamic year
Browse files Browse the repository at this point in the history
  • Loading branch information
vipzero committed Dec 30, 2023
1 parent 6cef38f commit 0577ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Home/ex/YearTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo } from 'react'
import styled from 'styled-components'
import { useTick, useTick5m } from '../../../hooks/useTick'

const YEAR = 2025
const YEAR = new Date(+new Date() - 1000 * 60 * 60).getFullYear() + 1
const TARGET = +new Date(YEAR, 0, 1, 0, 0, 0, 0)

const calcActive = (now: Date) => {
Expand Down

0 comments on commit 0577ec5

Please sign in to comment.