Sha256: d1309a582c140416884aa5e486aca34744d13d060aa320d6536fde3ceb1be44c
Contents?: true
Size: 351 Bytes
Versions: 287
Compression:
Stored size: 351 Bytes
Contents
require 'test_helper' require 'time' describe "TimeFormat methods" do before do @time_string = "2010-11-27T06:08:03-05:00" @time = Time.parse @time_string end it "should convert pacific to eastern" do string = "2010-11-27T06:08:03-08:00" time = Time.parse(string) time.to_s.must_equal "2010-11-27 09:08:03 -0500" end end
Version data entries
287 entries across 287 versions & 1 rubygems