dolfnoordman / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

add functions not working at daylight savings boundary #178

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set system to en-gb -- maybe others but haven't tested
2. set date to 24 Mar 2012 00:00
3. date.add({hours:1})

What is the expected output? What do you see instead?
should be 24 March 2012 01:00
but is 24 March 2012 00:00

What version of the product are you using? On what operating system?
Win 7 /  Date.js @date: 2008-05-13

Please provide any additional information below.
seems that the chrome and opera (maybe others) dont work on daylight savings 
boundaries.

If you change all your references from setMilliseconds to setUTCMilliseconds 
then this will work

ELSE

Date.prototype.setMilliseconds = Date.prototype.setUTCMilliseconds;

Original issue reported on code.google.com by pesco...@gmail.com on 7 Oct 2013 at 9:07