diff --git a/ChangeLog b/ChangeLog index fdaff39e61..e76f56f550 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 28 23:50:47 2008 Yusuke Endoh + + * test/ruby/test_time.rb (test_strftime): make test for %a independent + from local timezone. [ruby-dev:35992] + Thu Aug 28 23:39:49 2008 Yusuke Endoh * string.c (rb_str_shared_replace): remove corrupt noembed string diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 87516e10c4..b36813bb9c 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -378,7 +378,8 @@ class TestTime < Test::Unit::TestCase assert_equal("foo\0bar\x0000\x0000\x0000", T2000.strftime("foo\0bar\0%H\0%M\0%S")) assert_equal("foo" * 1000, T2000.strftime("foo" * 1000)) - assert_equal("Sat", Time.at(946684800).strftime("%a")) + t = Time.mktime(2000, 1, 1) + assert_equal("Sat", t.strftime("%a")) t = Time.at(946684800, 123456.789) assert_equal("123", t.strftime("%3N"))