fix bug with dailys tick logic not consulting user midnight. refactor other user midnight into one function
fix bug with dailys tick logic not consulting user midnight. refactor other user midnight into one function

jms301/todo-play,vijo/todo-play,vijo/todo-play,jms301/todo-play