Dynamically convert timestamp to a different timezone
<p>I am using moment.js and moment-timezone. how can I create a function to convert <code>2016-06-12 06:22:18</code> UTC time to the user's timezone time and then format the time to <code>Jun 12, 2015 6:22 PM</code></p>

<hr>

<p>for example:</p>

<pre><code>updateTime("2016-06-12 06:22:18");
</code></pre>

<p>if in chicago, the output will be:</p>

<pre><code>"Jun 12, 2016, 1:22 AM"
</code></pre>