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

Apply recurring downtimes on Sundays #81

Merged

Conversation

erikdsjostrom
Copy link
Contributor

NinjaDateTime uses ISO 8691 to express dates and time, with week days
numbered as 1-7, 7 being Sunday. While the input data uses the North
American/Islamic system which numbers week days as 0-6, 0 being Sunday.
This caused recurring downtimes scheduled on a Sunday to fail, while all
other week days worked correctly. With this commit the function which
returns the day of the week is updated to use the 0-6 format.

Fixes: MON-11684

Signed-off-by: Erik Sjöström esjostrom@op5.com

NinjaDateTime uses ISO 8691 to express dates and time, with week days
numbered as 1-7, 7 being Sunday. While the input data uses the North
American/Islamic system which numbers week days as 0-6, 0 being Sunday.
This caused recurring downtimes scheduled on a Sunday to fail, while all
other week days worked correctly. With this commit the function which
returns the day of the week is updated to use the 0-6 format.

Fixes: MON-11684

Signed-off-by: Erik Sjöström <esjostrom@op5.com>
@erikdsjostrom erikdsjostrom requested a review from a team June 11, 2019 13:43
Copy link
Contributor

@jacobbaungard jacobbaungard left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@erikdsjostrom erikdsjostrom merged commit 29bcbb5 into master Jun 11, 2019
@erikdsjostrom erikdsjostrom deleted the bugfix/MON-11684-valid-recurring-downtime-is-not-applied branch June 11, 2019 14:32
jimorie pushed a commit that referenced this pull request Jun 12, 2019
NinjaDateTime uses ISO 8691 to express dates and time, with week days
numbered as 1-7, 7 being Sunday. While the input data uses the North
American/Islamic system which numbers week days as 0-6, 0 being Sunday.
This caused recurring downtimes scheduled on a Sunday to fail, while all
other week days worked correctly. With this commit the function which
returns the day of the week is updated to use the 0-6 format.

Fixes: MON-11684

Signed-off-by: Erik Sjöström <esjostrom@op5.com>
jimorie added a commit that referenced this pull request Jun 12, 2019
NinjaDateTime uses ISO 8691 to express dates and time, with week days
numbered as 1-7, 7 being Sunday. While the input data uses the North
American/Islamic system which numbers week days as 0-6, 0 being Sunday.
This caused recurring downtimes scheduled on a Sunday to fail, while all
other week days worked correctly. With this commit the function which
returns the day of the week is updated to use the 0-6 format.

Fixes: MON-11684

Signed-off-by: Erik Sjöström <esjostrom@op5.com>
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

2 participants