Ruby 1.8 compatibility

And bugfix for time with negative timezone