I think use of midnight on all timestamps is confusing IFTTT which doesn't see activity as new between two checks. Switching time to _now_ to see if that fixes. Hopefully won't create repeated entries as the time changes with each check.
bad paste in last commit
two bad commits. This should do the trick