kopia lustrzana https://github.com/lynn/hello-wordl
Fix local-time seed generation
rodzic
17eb5d3de1
commit
cca54b6d9f
|
@ -26,7 +26,11 @@ function useSetting<T>(
|
|||
return [current, setSetting];
|
||||
}
|
||||
|
||||
const todaySeed = new Date().toLocaleDateString().replace(/\//g, "");
|
||||
const now = new Date();
|
||||
const todaySeed =
|
||||
now.toLocaleDateString("en-US", { year: "numeric" }) +
|
||||
now.toLocaleDateString("en-US", { month: "2-digit" }) +
|
||||
now.toLocaleDateString("en-US", { day: "2-digit" });
|
||||
|
||||
function App() {
|
||||
type Page = "game" | "about" | "settings";
|
||||
|
|
Ładowanie…
Reference in New Issue