Log File With No Carriage Return

I wonder how the log file really looks like because it seems you are sending a CR LF

myLog.println(ldrStatus2);

so why is the CR LF missing after ldrStatus2?

can you upload your log file?

by the way

          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println("Connection: close");  // the connection will be closed after completion of the response
          client.println("Refresh: 5");  // refresh the page automatically every 5 sec
          client.println();
          client.println("<!DOCTYPE HTML>");
          
          client.println("<html>"); //Begin HTML
          client.println("<h1>");
          client.print(Year);
          client.print("-");
          client.print(Month);
          client.print("-");

you missed to provide the content-length - so this can't be a HTTP/1.1 but a HTTP/1.0 only.
you missed the body tag
in general, I want to give you the advice to validate your page with
https://validator.w3.org/#validate_by_input