Bugfix zum Tag
// calculate days, hours and minutes until startTime:
var now = new Date();
var dayLightSavingTimeDiff =
now.getTimezoneOffset() - startTime.getTimezoneOffset();
// here comes the fix
now = new Date(now.getTime() - (dayLightSavingTimeDiff * 1000 * 60));
// now we get a more human result
var diff = Math.abs(startTime.diff(now));
matthias - 30. Oct, 18:26
0 comments - add comment - 0 trackbacks






