I am encountering a really strange error when created a new data in javascript from the string.
My String looks like this 2015-12-04T01:42:13
The code is the following
date = new Date(2015-12-04T01:42:13)
console.log(date);
The result of the console.log is 2015-12-04T02:42:13
but why? I now that UTC is +1 in my timezone. But I am taking the Value out of the database and comparing it with the actual date to see how much time has passed. I do not want it to be corrected as it hase been obtained in this timezone already. Why is this so? What is the logic?
How can i create the exact Date from a String?
This actually seems to be a Problem with node.js. I cannot reprodouce it everywhere.