[前][次][番号順一覧][スレッド一覧]

ruby-changes:73835

From: Hiroshi <ko1@a...>
Date: Sat, 1 Oct 2022 20:29:46 +0900 (JST)
Subject: [ruby-changes:73835] df1cf0a08b (ruby_3_1): Re-enable example for Europe/Amsterdam pre-1970 time

https://git.ruby-lang.org/ruby.git/commit/?id=df1cf0a08b

From df1cf0a08b1c078ef37e8d2c1a2ac9b0c3fca8b3 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 29 Sep 2022 15:40:22 +0900
Subject: Re-enable example for Europe/Amsterdam pre-1970 time

  * https://github.com/ruby/spec/pull/939
  * https://github.com/ruby/ruby/pull/6393
---
 spec/ruby/core/time/shared/local.rb | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/spec/ruby/core/time/shared/local.rb b/spec/ruby/core/time/shared/local.rb
index 997b7186f1..c4aa7a7ea9 100644
--- a/spec/ruby/core/time/shared/local.rb
+++ b/spec/ruby/core/time/shared/local.rb
@@ -6,18 +6,16 @@ describe :time_local, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/time/shared/local.rb#L6
     end
   end
 
-=begin
   platform_is_not :windows do
     describe "timezone changes" do
-      it "correctly adjusts the timezone change to 'CEST' on 'Europe/Amsterdam'" do
+      it "correctly adjusts the timezone change to 'CET' on 'Europe/Amsterdam'" do
         with_timezone("Europe/Amsterdam") do
-          Time.send(@method, 1940, 5, 16).to_a.should ==
-            [0, 40, 1, 16, 5, 1940, 4, 137, true, "CEST"]
+          Time.send(@method, 1970, 5, 16).to_a.should ==
+            [0, 0, 0, 16, 5, 1970, 6, 136, false, "CET"]
         end
       end
     end
   end
-=end
 end
 
 describe :time_local_10_arg, shared: true do
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]