Which takes place first? The day-to-day upgrade or the twelve o'clock at night strike?
From the help page :
Just prior to the twelve o'clock at night strike, the upgrade which has actually obtained one of the most ballots is approved and also created quickly.
So, it takes place prior to the strike, making the Great Pit upgrade valuable if you require that side.