Fixing bug where adhoc usage after 23:00 added to previous day