captbaritone / captbaritone/datejs

add functions not working at daylight savings boundary

Open
#178 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.