Fix Time#to_date issue for Ruby 187

Somehow Time#to_date is a private method in Ruby 1.8.7...