What a cool tutorial / project!
Yes, I see what Szaniszló Dániel mentioned. It only seems to happen when it’s the same day. I experimented on your pen without forking cause I didn’t have a lot of time (so I have no link), but, you can do then.diff(now, ‘days’) to reliably get zero if it’s same day.