In this code hour() only ever returns a sero (0), what am I doing wrong? This snippet is nserted into "void Loop" of "esp8266-Weather-Station-Color.ino"
// Set Brightness
if (hour() >= 07 && hour() <= 21) {
analogWrite(TFT_LED,255); // Day Mode
Serial.println (hour());
Serial.println("Day Mode");
}
else {
analogWrite(TFT_LED,40); //Night Mode
Serial.println (hour());
Serial.println ("Night Mode");
}
delay(10000);