title: Javascript - displaying locale time from mySQL TimeDate
body: <p>I am having an issue with displaying the correct time.  I have a php script that when a button is clicked it inserts the CURRENT_TIMESTAMP into the database. The server is located in Arizona, I am in PST. When I call the time in my script it shows Arizona time, but I need it to show the users time.  So 2015-02-18 16:06:28 Arizona time, MY time is 2015-02-18 15:06:28. </p>
  
  <p>How do i get the correct time. I am using moment.js, but no matter how i format it it shows the incorrect time. I am not sure but is DST, not being considered?</p>
  
  <pre><code>var time_in = time_in;//format 2015-02-18 16:17:33
  var timeIn = moment.utc(time_in, "HH:mm a").format("HH:mm a");
  </code></pre>