Correct program date when time is 12am