getTime () returns unixtme different from date

0

I have a date string that when I assign this string to a date and later I will get the getTime of it, if the application is running on different machines the returned unixtime comes with a few different hours being two hours the difference .

Why and how to set this so that unixtime will come with the date of the string I passed.

Code:

var data = "2018-02-12T10:20:00"
var dataString = new Date(data);
dataString.getTime();
    
asked by anonymous 15.02.2018 / 00:26

0 answers