Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure localDateValue() takes local daylight savings into account #345

Closed

Conversation

danielschuetter
Copy link

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
call to localDateValue() returns the wrong value for some days if there is a daylight saving change in this month as it only looks at the timezoneOffset for today instead of the actual day

What is the new behavior (if this is a feature change)?
it uses the timezoneOffset of the specific day to calculate the localDateValue

Does this PR introduce a breaking change?
no

Please check if the PR fulfills these requirements

Other information:

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6a907f1 on danielschuetter:daylightSavings into 01a5fe0 on dalelotts:master.

dalelotts added a commit that referenced this pull request Oct 21, 2016
…ys if there is a daylight savin

Now it uses the timezoneOffset of the specific day to calculate the localDateValue

Closes #345
@dalelotts
Copy link
Owner

Thanks for the PR! Nice catch! I think this have been around for a while but nobody picked up on it.

I'm doing to close this PR and submit as a change to the develop branch - note that I changed your implementation to eliminate the if statement.

@dalelotts dalelotts closed this Oct 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants