From a6198995e7899265b4fa1c6dd013085ec0a04797 Mon Sep 17 00:00:00 2001
From: RedBeardEth <90423049+RedBeardEth@users.noreply.github.com>
Date: Thu, 12 Dec 2024 00:53:32 +1100
Subject: [PATCH 1/2] quick fix for timer
---
landing/src/components/modules/season-start-timer.tsx | 2 +-
landing/src/components/ui/elements/CountdownTimer.tsx | 1 +
landing/src/hooks/use-season-start.tsx | 5 +++--
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/landing/src/components/modules/season-start-timer.tsx b/landing/src/components/modules/season-start-timer.tsx
index 942eb25e3..24846921f 100644
--- a/landing/src/components/modules/season-start-timer.tsx
+++ b/landing/src/components/modules/season-start-timer.tsx
@@ -10,7 +10,7 @@ export const SeasonStartTimer = () => {
return (
- {String(hours).padStart(2, "0")}:{String(minutes).padStart(2, "0")}:{String(seconds).padStart(2, "0")}
+ {"<"} {String(hours).padStart(2, "0")}:{String(minutes).padStart(2, "0")}:{String(seconds).padStart(2, "0")}
);
};
diff --git a/landing/src/components/ui/elements/CountdownTimer.tsx b/landing/src/components/ui/elements/CountdownTimer.tsx
index f1ae81bae..c05e176cd 100644
--- a/landing/src/components/ui/elements/CountdownTimer.tsx
+++ b/landing/src/components/ui/elements/CountdownTimer.tsx
@@ -22,6 +22,7 @@ export function CountdownTimer() {
Eternum is Launching in
+ {"<"}
diff --git a/landing/src/hooks/use-season-start.tsx b/landing/src/hooks/use-season-start.tsx
index b49fbc8b7..cfe4a36b7 100644
--- a/landing/src/hooks/use-season-start.tsx
+++ b/landing/src/hooks/use-season-start.tsx
@@ -1,8 +1,9 @@
-import { configManager } from "@/dojo/setup";
import { useEffect, useState } from "react";
export const useSeasonStart = () => {
- const seasonStart = BigInt(configManager.getSeasonConfig().startAt || 0);
+ const seasonStart = BigInt(new Date("2024-12-11T15:35:00Z").getTime() / 1000);
+
+ /*BigInt(configManager.getSeasonConfig().startAt || 0);*/
const nextBlockTimestamp = BigInt(Math.floor(Date.now() / 1000));
const [countdown, setCountdown] = useState(0n);
From 7e97fdac916a9c61faf7aa13502f4de4a2a87df2 Mon Sep 17 00:00:00 2001
From: RedBeardEth <90423049+RedBeardEth@users.noreply.github.com>
Date: Thu, 12 Dec 2024 00:56:24 +1100
Subject: [PATCH 2/2] client timer
---
client/src/hooks/useSeasonStart.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/src/hooks/useSeasonStart.tsx b/client/src/hooks/useSeasonStart.tsx
index f20c8f2a6..6ea2e3eda 100644
--- a/client/src/hooks/useSeasonStart.tsx
+++ b/client/src/hooks/useSeasonStart.tsx
@@ -1,8 +1,8 @@
-import { configManager } from "@/dojo/setup";
+//import { configManager } from "@/dojo/setup";
import { useMemo, useState } from "react";
export const useSeasonStart = () => {
- const seasonStart = useMemo(() => BigInt(configManager.getSeasonConfig().startAt || 0), []);
+ const seasonStart = BigInt(new Date("2024-12-11T15:35:00Z").getTime() / 1000);/*useMemo(() => BigInt(configManager.getSeasonConfig().startAt || 0), []);*/
const nextBlockTimestamp = useMemo(() => BigInt(Math.floor(Date.now() / 1000)), []);
const [countdown, setCountdown] = useState(0n);