From that article:
Reuters said two employees claimed the 5k th car came off the line at 5 am. However, Elon/Tesla says they did 5k in 7 days. Hopefully the accurate story is in the Q2 numbers letter.
In the meantime, there are some possibilities:
Option 1: Reuters/ their source is incorrect and Tesla made 5k midnight to midnight.
Option 2: Tesla made 5k cars in the span of Sun 5 a.m. to Sunday 5 a.m.
Option 3: Tesla made 5k cars in the span of Sunday midnight to Sunday 5 a.m.
Option 4: Tesla was only counting cars that were started after midnight, thus including the entire manufacturing pipeline delay. This allows for 5k in the following weeks, but requires additional time for the first vehicle.
(Personally, I think this 'should apologize' line of thought is beneath the level of TMC)