title: WordPress: Warning: mysqli_real_connect(): It is not safe to rely on the system's timezone settings
body: <p>Hi for some reason i cant access my website i get this error code: </p>
  
  <p>Warning: mysqli_real_connect(): It is not safe to rely on the system's timezone settings. You are <em>required</em> to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/wp-includes/wp-db.php on line 1531</p>
  
  <blockquote>
    <p>Fatal error: mysqli_real_connect(): Timezone database is corrupt -
    this should <em>never</em> happen! in /var/www/html/wp-includes/wp-db.php on
    line 1531</p>
  </blockquote>
  
  <p>I have gone to look at that line of code:</p>
  
  <pre><code>if ( WP_DEBUG ) {
                  mysqli_real_connect( $this-&gt;dbh, $host, $this-&gt;dbuser, $this-&gt;dbpassword, null, $port, $socket, $client_flags );
              } else {
                  @mysqli_real_connect( $this-&gt;dbh, $host, $this-&gt;dbuser, $this-&gt;dbpassword, null, $port, $socket, $client_flags );
          }
  
          if ( $this-&gt;dbh-&gt;connect_errno ) {
              $this-&gt;dbh = null;
  
              /*
               * It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if:
               *  - We haven't previously connected, and
               *  - WP_USE_EXT_MYSQL isn't set to false, and
               *  - ext/mysql is loaded.
  </code></pre>
  
  <p>I was wondering if anyone could help me?</p>