-
Notifications
You must be signed in to change notification settings - Fork 195
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
Incorrect FT of ScheduleRules at end of year #5114
Conversation
|
||
// set last week schedule before we overwrite week schedule | ||
lastDate = date - Time(1); | ||
while (lastDate.dayOfWeek().value() != DayOfWeek::Saturday) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fairly certain that this bug is relevant for simulations whose year ends on a Sunday (e.g., 2023). The lastDate = date - Time(1)
line here makes lastDate
a Saturday, and so we don't enter this while
block.
CI Results for 2016ea7:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a cursory look this looks sensible, and there are tests for it too. Looks good to me.
Pull request overview
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.