Fix for issue #1517

This commit fixes issue #1517.

Also this commit fixes "Time#eql?" method.
In ruby 1.9.3, a time object created with UTC offset +05:00 and the other created with UTC offset 18000 sec are the same.

See GH-1517_time_to_s_spec.rb for details.