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

[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules. #1505

Merged
merged 2 commits into from Jan 15, 2015

Conversation

esdrubal
Copy link
Contributor

Fixes: #26008
We do not want (transition.DayOfWeek - first) % 7 to be negative.
As (transition.DayOfWeek - first) cannot be lower than -7, adding 7 to it solves the issue.


[Test] //Covers #26008
public void DSTWithFloatingDateRule ()
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is using spaces here.

Fixes #26008
We do not want (transition.DayOfWeek - first) % 7 to be negative.
As (transition.DayOfWeek - first) cannot be lower than -7, adding 7 to it solves the issue.
marek-safar added a commit that referenced this pull request Jan 15, 2015
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
@marek-safar marek-safar merged commit bc6ea9d into mono:master Jan 15, 2015
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.

Commit migrated from mono/mono@bc6ea9d
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