Shouldn't the cutoff check use the isBefore function?
if (now > todaysCutoff)
The way I had it written it needed isAfter instead, but this is the exact kind of feedback I was looking for. Thank you.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.