Use Ruby 1.8.7 safe Time operations.

In 1.8.7, time.iso8601 only returns the date and does not include the time.