Skip to content

Commit 2e91f93

Browse files
committed
clarify end time
1 parent ff0fcf6 commit 2e91f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Promo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FunctionComponent } from 'preact';
2-
import { useEffect, useState } from 'preact/compat';
2+
import { useEffect, useState } from 'preact/hooks';
33

44
const dayLeftString = (days: number): string => {
55
if (days === 0) {
@@ -13,7 +13,7 @@ const dayLeftString = (days: number): string => {
1313

1414
const computeDaysLeft = () => {
1515
const now = Date.now();
16-
return Math.floor((1752735600000 - now) / 86_400_000);
16+
return Math.floor((1752714000000 - now) / 86_400_000);
1717
};
1818

1919
const Promo: FunctionComponent = () => {

0 commit comments

Comments
 (0)