samirhosninet commited on
Commit
581e32b
·
1 Parent(s): 81ef15a

Set target countdown launch date to a fixed date of July 12, 2026

Browse files
Files changed (1) hide show
  1. components/CountdownBanner.tsx +2 -15
components/CountdownBanner.tsx CHANGED
@@ -19,21 +19,8 @@ export function CountdownBanner() {
19
  const init = setTimeout(() => {
20
  setIsMounted(true);
21
 
22
- // Set target date to 15 days in the future from current visit, stored in localStorage so it is consistent
23
- const targetTimeStr = localStorage.getItem("hubapi_launch_target");
24
- let targetTime = 0;
25
-
26
- if (targetTimeStr) {
27
- targetTime = parseInt(targetTimeStr, 10);
28
- // If target time has already passed, reset it to 12 days in the future
29
- if (targetTime < Date.now()) {
30
- targetTime = Date.now() + 12 * 24 * 60 * 60 * 1000 + 4 * 60 * 60 * 1000 + 15 * 60 * 1000;
31
- localStorage.setItem("hubapi_launch_target", targetTime.toString());
32
- }
33
- } else {
34
- targetTime = Date.now() + 15 * 24 * 60 * 60 * 1000 + 6 * 60 * 60 * 1000 + 32 * 60 * 1000;
35
- localStorage.setItem("hubapi_launch_target", targetTime.toString());
36
- }
37
 
38
  const calculateTimeLeft = () => {
39
  const difference = targetTime - Date.now();
 
19
  const init = setTimeout(() => {
20
  setIsMounted(true);
21
 
22
+ // Set target date to July 12, 2026 (12/7/2026)
23
+ const targetTime = new Date("2026-07-12T00:00:00").getTime();
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  const calculateTimeLeft = () => {
26
  const difference = targetTime - Date.now();