title: Linux awk - How to convert date format : Wed 20 Apr 2018 19:56:52 GMT to Wed 20 Apr 2018 19:56:52 +02:00?
body: <p>Ive been trying to convert that date format for hours now. I want to get rif off the GMT and replace with my time zone which is +02:00</p>
  <pre><code>awk -F, -v currentDate=`TZ=&quot;Europe/Paris&quot; date -d  &quot;23 hours ago&quot; +%s`'{OFS=&quot;,&quot;;&quot;date -d&quot; $1&quot; +%s&quot;
  </code></pre>
  <p>with $1 = Wed 20 Apr 2018 19:56:52 GMT</p>
  <p>I keep getting the same input as ouput, it seems its ignoring the TZ</p>
  <p>My current timezone is +2h, so either appending that to the date in place of the GMT or convert the date to localtime.</p>
  <p>Expected result = <code>Wed 20 Apr 2018 19:56:52+02:00</code> or <code>Wed 20 Apr 2018 21:56:52</code></p>