Ruby 1.8 compatibility

And bugfix for time with negative timezone
Merge pull request #212 from davispuh/patch-1

Ruby 1.8 compatibility