This happened twice to me during the same game. I made sure I took a screenshot of it the second time. After instructing a worker to build a farm, a military unit was highlighted. However, the information box (bottom left) said the military unit could build a farm in a rediculous amount of turns. In the screenshot attached, it's 2,147,483,647 turns.
Screenshot attached.
Screenshot attached.