aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/todaysSolution.ts
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-06-03 09:58:12 -0700
committerPinapelz <yukais@pinapelz.com>2026-06-03 09:58:12 -0700
commit88e2e3d62677f6af58b19d8e5d4d789b96d525db (patch)
tree2934d599fa4ef8c830cddf452fbdf7e787b1ca12 /src/helpers/todaysSolution.ts
parentb1c92e09707a423b7b5b01ccb60ba59a91d9f055 (diff)
move songs.ts to be entirely server side
Diffstat (limited to 'src/helpers/todaysSolution.ts')
-rw-r--r--src/helpers/todaysSolution.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/helpers/todaysSolution.ts b/src/helpers/todaysSolution.ts
deleted file mode 100644
index 32760cb..0000000
--- a/src/helpers/todaysSolution.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { songs, startDate } from "../constants";
-
-// const epochMs = new Date(2022, 3, 10).valueOf();
-// const now = Date.now();
-// const index = Math.floor((now - epochMs) / msInDay);
-
-const msInDay = 86400000;
-const todaysDate = new Date();
-const index = Math.floor((todaysDate.getTime() - startDate.getTime() )/msInDay)
-
-export const todaysSolution = songs[index % songs.length];
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage