Actions
Defect #29855
openadd_working_days returns wrong date
Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Issues
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
Redmine::Util::DateCalculation#add_working_days(date, n)
returns wrong date when date
is holiday and n
is a multiple of 5.
Example:
irb(main):004:0> Setting.non_working_week_days => ["6", "7"] irb(main):001:0> include Redmine::Utils::DateCalculation irb(main):002:0> add_working_days(Date.new(2018, 10, 27), 5) => Mon, 05 Nov 2018 # Expected Fri, 02 Nov 2018 irb(main):003:0> add_working_days(Date.new(2018, 10, 28), 5) => Mon, 05 Nov 2018 # Expected Fri, 02 Nov 2018
Tested with trunk@17598
Files
Related issues
Updated by Go MAEDA over 6 years ago
- Related to Defect #14846: Calculation of the start date of following issues ignores the "non-working days" setting added
Updated by Go MAEDA over 6 years ago
- Description updated (diff)
- Status changed from New to Confirmed
- Affected version set to 3.3.7
Updated by Go MAEDA over 6 years ago
- Assignee set to Jean-Philippe Lang
- Target version set to 3.3.9
Updated by Jean-Philippe Lang over 6 years ago
- Assignee changed from Jean-Philippe Lang to Yutaka Hara
Updated by Marius BĂLTEANU over 6 years ago
- Assignee changed from Go MAEDA to Jean-Philippe Lang
Updated by Marius BĂLTEANU over 6 years ago
- Assignee changed from Jean-Philippe Lang to Go MAEDA
Actions