Fixing bug with Time.to_s

Some versions of Ruby don't like Time.to_s('F') and will throw an exception. This pull request replaces the aforementioned call with Time.to_f.to_s which is more reliable across all versions of Ruby.

There are no other instances of "Time.to_s(" that I could find.