Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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