Here is a link to write/read 'type long' to EEPROM
https://playground.arduino.cc/Code/EEPROMReadWriteLong
At power up, read the OnTime and OffTime from EEPROM.
You will need 4 switches.
incOnTime
decOnTime
incOffTime
decOffTime
When you change Ontime or OffTime, start a timer for ~10 seconds.
When the 10 second timer finishes, store the two times (once only) to EEPROM
Oh, I said all this once before.
Edit:
if (currentMillis - secondd == 1000) =>
if (currentMillis == 1000 =>
currentMillis - previousMillis1 == 0 When will this be true?
Put each line of code on a line by itself.
Clean up the above, then tackle new stuff.