title: Getting the wrong timezone when outputting user registration date in Wordpress
body: <p>I'm trying to output user registration time in the local timezone, but Wordpress stores the <code>user_registered</code>value in UTC format. Backend settings are set to be +2h. </p>
  
  <p>The following code: </p>
  
  <pre><code>$user_registered = $user_info-&gt;user_registered;
  </code></pre>
  
  <p>will display the UTC time like <code>2018-10-25 15:04:45</code>, where I need it to be <code>2018-10-25 17:04:45</code></p>
  
  <p>I tried to get the local time of user registration with <code>get_gmt_from_date</code> function like this</p>
  
  <pre><code>$formatted_time = get_gmt_from_date( $user_registered, $format = 'H:i:s');
  </code></pre>
  
  <p>but that is not working. How do I output local time format for user registration time? </p>