I'll check it with the person who deals with the backend. This is basically a combination of legacy code and I just followed what his API instructed me to do. I do get your point about before/after midnight though.