You still have millis() == 0 in setup().
You don't control the value of millis(). That's a "system" thing. If you want to turn on the coffee machine at a specified wall clock time, you have to use an RTC, otherwise whenever the arduino is reset millis() will restart from zero.
Oh, and please take away that delay(1) inside printDigits() ![]()