title: How to convert a UTC time to local time javascript
body: <p>I have a requirement to convert a UTC time local time based on user timezone </p>
  
  <p>I have two parameters utc time and users timezone as a string </p>
  
  <p>ie
  0,1,2,3 ...12 (timezone)
  0,-1,-2,-3 ...-12 (timezone)</p>
  
  <pre><code>var utc = "2014-10-18T06:14:41.512Z"
  tz = 5.5(Indian Standard Time)
  </code></pre>
  
  <p>Expected result <strong>Sat Oct 18 2014 11:44:28 GMT+0530</strong></p>
  
  <p>I have tried moment js </p>
  
  <pre><code>moment("2014-10-18T06:14:41.512Z").zone('+05:30').format('YYYY-MM-DD HH:mm')
  </code></pre>
  
  <p>and the result is correct. </p>
  
  <p>But when i change the timezone to other it is not showing as expected result 
  tried</p>
  
  <pre><code>moment("2014-10-18T06:14:41.512Z").zone('+12:00').format('YYYY-MM-DD HH:mm')
  </code></pre>
  
  <p>result "<strong>2014-10-18 18:14</strong>" Expected <strong>2014-10-18 19:18</strong></p>
  
  <p>12 is NewZeland timezone. Please help me to solve this issue. Thank you</p>