title: date_i18n in wordpress/php
body: <p>I am working on a html/php code as shown below:</p>
  
  <blockquote>
    <p>HTML/PHP Code:</p>
  </blockquote>
  
  <pre><code>&lt;time datetime="&lt;?php echo esc_attr(date_format($ts, 'H:i d-m-Y')) ?&gt;"
     data-timezone="&lt;?php echo esc_attr($tz_param) ?&gt;"&gt;&lt;?php echo ucfirst(date_i18n( 'F j H:i', $ts-&gt;getTimeStamp())); ?&gt;
  &lt;/time&gt;
  </code></pre>
  
  <p>The above <strong>html/php</strong> code displays the following on inspect:</p>
  
  <pre><code>&lt;time datetime="02:15 19-07-2019" data-timezone="he"&gt;Juillet 19 06:15&lt;/time&gt;
  </code></pre>
  
  <p>The time here <code>Juillet 19 06:15</code> doesn't seems to match the time here <code>02:15 19-07-2019</code> which is inside the datetime attribute</p>
  
  <p>On debugging <code>print_r($ts)</code>, it prints:</p>
  
  <pre><code> DateTime Object
  (
      [date] =&gt; 2019-07-19 01:00:00.000000
      [timezone_type] =&gt; 3
      [timezone] =&gt; America/New_York
  )
  </code></pre>
  
  <p><strong>Problem Statement:</strong></p>
  
  <p>I am wondering what changes I should make in the php code so that the time here <code>Juillet 19 06:15</code> should be equal to the time inside datetime attribute <code>02:15 19-07-2019</code></p>