Daily rules run on Central time, and the sign-in bonus gets a hard floor
today() was a UTC day, which rolls over at 7 PM Central. Sign in at 6:55 PM and again at 7:05 PM and those were two different days, so the once-per-day sign-in bonus paid twice, ten minutes apart. On the live ledger 83 of the first 364 sign-in bonuses landed less than 24 hours after the previous one, one pair 24 minutes apart, worth 618 credits. The same boundary governs the daily-credit claim, the claim streak, each campaign's daily spend cap and the login-ad daily meter, all of which could turn over twice in one Central evening. ctDay() puts every member-facing daily rule on America/Chicago, which tracks CST/CDT on its own. Reporting slices elsewhere are left alone rather than re-bucketing chart history. The bonus also records login_ts now and refuses to pay again inside 20 hours, whatever the day string says. 20 rather than 24 so signing in at the same time each morning never skips. Safe to deploy between midnight and 7 PM Central, when the two day strings agree. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in: