Please sign in to comment.
Remove DateTime#to_time override
Currently if the offset is not zero then to_time returns self which can lead to errors where a developer assumes that the value is a Time. To solve this we can use the native implementation of DateTime#to_time in Ruby 1.9.3 as it handles offsets properly and is faster than our override.
- Loading branch information...
Showing with 0 additions and 14 deletions.