debug:bday

This commit is contained in:
Saahil 2025-01-07 00:18:47 -05:00
parent 9da8480ed6
commit 4fe1a17b21
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -5,6 +5,7 @@ export async function cronFunc(app: ModifiedApp) {
const today = new Date();
for (const [user, bday] of Object.entries(app.dbs.bday.JSON())) {
const date = new Date(bday);
console.debug(`bday: ${user}`, `${today.getDate()} == ${date.getDate()}`, `${today.getMonth()} == ${date.getMonth()}`);
if (
date.getDate() == today.getDate() &&
date.getMonth() == today.getMonth()