Solved: Perplexing, becuase nothing was wrong with it. Even without the time data, the functions still work as intended. So no date problem after all. Doing tests with static values showed accurate results. The bug has something to do with the code logic keeping the previous time, and it...