#890: Fix automatic import run
Changed how we compute the next time to run. Now if we compute the time in the same second as the next scheduled time, we will add 1 day to this date, thus it will run the next day at that time. Before it would return a not_a_date_time and thus the import would not run anymore.
Also added an unit test for this case.