title: momentJS: Getting wrong timestamp from date in a different timezone
body: <p>There is one time input i.e. start_time</p>
  
  <p>I am trying to get timestamp in milliseconds for these inputs</p>
  
  <pre><code>let start_time = "17:05:00";
  var start_date_moment = moment(start_time, "HH:mm:ss");
  console.log(start_timestamp);
  output is -&gt; moment("2019-04-24T17:05:00.000")
  </code></pre>
  
  <p>This output remains same on server and local</p>
  
  <p>But when I am trying to get unix timestamp in milliseconds in the same way</p>
  
  <pre><code>var start_timestamp = moment(start_time, "HH:mm:ss").valueOf();
  </code></pre>
  
  <p>On server at different timezone</p>
  
  <pre><code>console.log(start_timestamp);//1556125500000
  console.log(moment(start_timestamp/1000).format('YYYY-MM-DD HH:mm:ss'); //2019-04-24 17:05:00
  </code></pre>
  
  <p>On local</p>
  
  <pre><code>console.log(start_timestamp);//1556105700000
  console.log(moment(start_timestamp/1000).format('YYYY-MM-DD HH:mm:ss'); //2019-04-24 22:35:00
  </code></pre>
  
  <p>This start_timestamp value is different on local and server. But timestamp shouldn't change with timezone, it should remains same for all timezones. Please help me with this.</p>
  
  <p>How to get the correct and same value at both places. I got this link some what related to this <a href="https://github.com/moment/moment/issues/2035" rel="nofollow noreferrer">https://github.com/moment/moment/issues/2035</a></p>
  
  <p>There is no issue with dates any particular format, issue is only with timestamp.</p>