LED matrix display - MD_Parola, MD_MAX72xx and MD_MAXPanel

Hi everybody,
I don't know much about programming, but I somehow updated working example code to work with my hardware. So now I have working ESP8266 NTP Led Matrix Clock. It is working fine. But I realized that those animating effects of display are a bit disturbing. So I want to change the code so that it dispalys only time in HH:MM format for much of time. And then, only once in a set interval (now set as 15 minutes), to display all other information - date, name of day, who has birthday (if corresponding date) and so on.
I tried to modify the code, but no success. It either locks and clock doesn't tick or it doesn't display anything at all.
Could anybody check my code and tell me, what to do, please? I wrote some comments so that the code is more easily to understand. Hopefully it helps.

So here is problematic part of my code:

void setup(void)
{
  Serial.begin(9600);
  WiFi.begin(ssid, password);

  while ( WiFi.status() != WL_CONNECTED ) {
    delay ( 500 );
    Serial.print ( "." );
  }

  timeClient.begin();
  
  P.begin(0);
  P.setInvert(false); //we don't want to invert anything so it is set to false
  P.setZone(0,  MAX_DEVICES - 5, MAX_DEVICES - 1);
  P.setZone(1, MAX_DEVICES - 5, MAX_DEVICES - 1);
//  P.setIntensity(LDR_Value);
//  Serial.println(LDR_Value);
  P.displayZoneText(1, szTime, PA_CENTER, SPEED_TIME, PAUSE_TIME, PA_PRINT, PA_NO_EFFECT);
  P.displayZoneText(0, szMesg, PA_CENTER, SPEED_TIME, PAUSE_TIME, PA_PRINT , PA_NO_EFFECT);
}

void loop(void)
{   
  timeClient.update();
  static uint32_t lastTime = 0; // millis() memory
  static uint8_t  display = 0;  // current display mode
  static bool flasher = false;  // seconds passing flasher
  LDR_Value = map(analogRead(A0), 0, 1024, 0, 15); // read the value from the sensor
  P.setIntensity(15);
  Serial.println(LDR_Value);

//Section 1 - I want this section to be displayed only once in set interval_1, let's say once in 15 minutes. 
//It works that way.

  P.displayAnimate();

  if (P.getZoneStatus(0))
  { 

// interval_1 = 15 
   if (m % interval_1 == 0) {

      switch (display)
      {
        case 0:    // This works fine - displaying day of week Monday - Sunday
          P.setPause(0, 3000);
          P.setTextEffect(0, PA_OPENING_CURSOR, PA_SCROLL_DOWN);
          display++;
          getDays(szMesg);
          break;

        case 1:    // This works fine - displaying date in DD.MM format like 18.05.
          P.setPause(0, 3000);
          P.setTextEffect(0, PA_MESH, PA_GROW_DOWN);
          display++;
          getDate_2(szMesg);
          break;

        case 2: // Displays time in HH:MM format like 13:55
          P.setFont(0, numeric7Seg);
          P.setTextEffect(0, PA_PRINT, PA_NO_EFFECT);
          P.setPause(0, 0);

          if (millis() - lastTime >= 1000)
          {
            lastTime = millis();
            getTime(szMesg, flasher);
            flasher = !flasher;
          }
          if (s == 15 && s <= 45)
          {
            display++;
            P.setTextEffect(0, PA_PRINT, PA_SCROLL_LEFT);
          }
          break;

        case 3: // Scrolls day of week like Monday
          P.setFont(0, nullptr);
          P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
          display++;
          getDays(szMesg);
          break;

        case 4: // Scrolls date and year like 18 May 2020
          P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
          display++;
          getDate(szMesg);
          break;

        case 5: // Scrolls dnes/zajtra ma meniny/narodeniny
          P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
          display++;
          getAkySviatok(szMesg);
          break;
          

        case 6: // 16. a 17. jún plus 9. a 10. november - špeciálny prípad, lebo 2 mená a Maťko junior
          if (dd == 16 && mm == 6 || dd == 17 && mm == 6 || dd == 9 && mm == 11 || dd == 10 && mm == 11)
          { P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
            display++;
            getName(szMesg);
            break;
          }
         
           
          // Kto ma sviatok
          else {
            P.setPause(0, 3000);
            // P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
            P.setTextEffect(0, PA_MESH, PA_GROW_DOWN);
            // P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
            display++;
            getName(szMesg);
            break;
          }

        case 7: // This is ok  - scrolls text if any
          if (text_zobrazit == true)
          { P.setPause(0, 0);
            P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
            display = 0;
            getText(szMesg);
            break;
          }

         else {
            display = 0;
            }
          
      }
    }
//**********************************

//Section 2 - here I want to display only time in HH:MM format for the rest of time.
//But I don't know ho to do it correctly    
    else {
      switch (display)
      {
        case 0:    // Displays day of week Monday - Sunday
          P.setPause(0, 3000);
          P.setTextEffect(0, PA_OPENING_CURSOR, PA_SCROLL_DOWN);
          display++;
          getDays(szMesg);
          break;

        case 1:    // Displays date in DD.MM format like 18.05.
          P.setPause(0, 3000);
          P.setTextEffect(0, PA_MESH, PA_GROW_DOWN);
          display++;
          getDate_2(szMesg);
          break;

        case 2: // Displays time in HH:MM format like 13:55
          P.setFont(0, numeric7Seg);
          P.setTextEffect(0, PA_PRINT, PA_NO_EFFECT);
          P.setPause(0, 0);

          if (millis() - lastTime >= 1000)
          {
            lastTime = millis();
            getTime(szMesg, flasher);
            flasher = !flasher;
          }
          if (s == 15 && s <= 45)
          {
            display++;
            P.setTextEffect(0, PA_PRINT, PA_SCROLL_LEFT);
          }
          break;

        case 3: // Scrolls day of week like Monday
          P.setFont(0, nullptr);
          P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
          display++;
          getDays(szMesg);
          break;

        case 4: // This is ok  - scrolls date and year like 18 May 2020
          P.setTextEffect(0, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
          display = 0;
          getDate(szMesg);
          break;
      }

    }
    
    P.displayReset(0);
    
   
  }

} //END of code