fixed problem with Time.new in ruby 1.8.6, still not sure if other things might not work