Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [Unreleased]
## Fixed
* Add 2028 bank holidays
* support 21st century 4 digit year strings for Daterange

## 5.10.5 / 2025-11-05
## Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/ndr_support/daterange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Daterange
attr_reader :date1, :date2, :source

OKYEARS = 1880..2030
OKYEARS = 1880..2099

# Raised when dates are not supplied in the correct order if do_not_flip_dates is passed as true:
class WrongDateOrderError < StandardError; end
Expand Down
2 changes: 1 addition & 1 deletion test/daterange_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_year_range_attributes
end

def test_year_range_future
s = 2.years.from_now.strftime('%Y')
s = '2099'
dr = Daterange.new(s)
assert_equal s, dr.to_s, "Daterange should support future years up to #{s}"
end
Expand Down
Loading