From 88e2e3d62677f6af58b19d8e5d4d789b96d525db Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 3 Jun 2026 09:58:12 -0700 Subject: move songs.ts to be entirely server side --- src/helpers/todaysSolution.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/helpers/todaysSolution.ts (limited to 'src/helpers/todaysSolution.ts') 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]; -- cgit v1.2.3