Instead of heading to the ISS, the spaceship will return to earth on Sunday.

It was supposed to be a historic day for Boeing, but the launch of its hyped-up Starliner spacecraft did not go exactly as planned.

Instead of heading to the International Space Station, the unmanned spacecraft is now supposed to return to Earth on Sunday.

NASA officials blamed the error on “automation,” saying at a news conference Friday that the spacecraft believed the time was “different than it actually was.”

All seemed to go as planned initially — the liftoff successfully took place just before 7 a.m. from Cape Canaveral Air Force Station in Florida. Shortly after, however, NASA’s live coverage of the launch appeared to go down and Boeing put out a statement that the spaceship was dealing with an “off-nominal insertion” but maintained it was “in a safe and stable configuration.”

It soon became clear that the Starliner was not going to make it to the International Space Station as planned.

“This is in fact why we test,” NASA administrator Jim Bridenstine said at a news conference Friday.

Bridenstine said it was an “automation” error.

“The anomaly resulted in the vehicle believing the time was different than it actually was, and because that timing was a little bit off, what ended up happening is the spacecraft tried to maintain a very precise control that it normally wouldn’t have tried to maintain and it burned a lot of prop,” Bridenstine said.

“And when that prop got burnt it looked like we weren’t able to go ahead and rendezvous with the International Space Station,” he added.

By the time the engineers were “able to get the signals up to actually command it to do the orbital insertion burn, it was a bit too late,” Bridenstine said.

He maintained, however, that the error likely would have been solved had a crew been onboard.

“This anomaly had to do with automation, and [astronauts] Nicole and Mike are trained specifically to deal with the situation that happened today where the automation was not working according to plan,” he said. “Had they been in there we very well may be docking with the International Space Station tomorrow, had they been in the space craft.”  

Bridenstine said he did not know what the “root cause” of the error that caused the timing to be off.

The Starliner’s failure to make it to the ISS is another setback Boeing. On Monday, the company announced it was suspending production of its 737 Max jets which have been grounded since March after two deadly crashes that killed a total of 346 people. The company admitted that its automatic flight control system played a role in the deadly 737 Max crashes.