Fix time formatting under Ruby 1.8.7.
Merge pull request #2 from organicveggie/master

Fix time conversion under Ruby 1.8.7