Fix time formatting under Ruby 1.8.7.