Actions
Bug #13652
closedRuby 2.3.4 does not catch Argument error when comparing DateTime with String
Description
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false.
Files
Updated by Hanmac (Hans Mackowiak) almost 7 years ago
@derekzwy (Wenyuan Zhang) it is fixed in Ruby2.4.1 and active_support 5.1.1
it looks like the bug does happen in your active_support version.
Try to update to a newer one.
Updated by Glass_saga (Masaki Matsushita) over 6 years ago
- Status changed from Open to Rejected
It can't be reproduced.
% ruby -v -r "date" -e "p DateTime.parse == 'No End Date'"
ruby 2.5.0dev (2017-08-29 trunk 59656) [x86_64-darwin15]
false
Actions
Like0
Like0Like0