Arduino Timer to turn on LED

int pinCount = 6;

You want to be able to change the number of pins at run time? If not, this should be const.

You want to be able to set the number of pins to a negative number? If not, the type should be unsigned.

You want to be able to set this to more than 255? If not, the type should be byte.

  time_t t = now();

Without some help, the Arduino has NO idea what time it is. There is NOTHING in your code to give the Arduino that help, so the time is based STRICTLY on how long the Arduino has been running.

if(hour(t) >= 6 || hour(t) <8){
Is that happy hour? Buy me a drink?