We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e22ca commit 89d821dCopy full SHA for 89d821d
2 files changed
lib/oai/client.rb
@@ -314,7 +314,7 @@ def parse_date(value)
314
Date.parse(value) # This will raise an exception for badly formatted dates
315
Time.parse(value).utc # Sadly, this will not
316
rescue
317
- raise OAI::ArgumentError.new
+ raise OAI::ArgumentException.new "unparsable date: '#{value}'"
318
end
319
320
# Strip out invalid UTF-8 characters. Regex from the W3C, inverted.
lib/oai/provider/response.rb
@@ -94,7 +94,7 @@ def parse_date(value)
94
95
Time.parse(value).utc # -- UTC Bug fix hack 8/08 not in core
96
97
98
99
100
def internalize(hash = {})
0 commit comments