I have two text-input-fields where users can enter a time in format "hh:mm". The main part looks like the following code:
var time1 = new Date("01/01/2013 " + time1input);
var time2 = new Date("01/01/2013 " + time2input);
var difference = new Date(time2 - time1);
The result is always 01:00 to high (e.g. 08:00 - 04:00 results in 05:00 which is obviously wrong :) ). Did i misunderstood something?