diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-12 14:09:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-12 21:58:13 +0900 |
commit | 99a9c3fe2eaab8157765d792dc871da6daea0327 (patch) | |
tree | ae623193dfd48aa2af9280d878ca382f4063e68e /spec | |
parent | 90935ff29424c4542d2122f4097ec684cb4b3adf (diff) | |
download | ruby-99a9c3fe2eaab8157765d792dc871da6daea0327.tar.gz |
Fixed yday and wday with timezone [Bug #17024]
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/time/new_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/time/new_spec.rb b/spec/ruby/core/time/new_spec.rb index 3cafd46db7..1a2f93e2ef 100644 --- a/spec/ruby/core/time/new_spec.rb +++ b/spec/ruby/core/time/new_spec.rb @@ -129,6 +129,10 @@ ruby_version_is "2.6" do time.zone.should == zone time.utc_offset.should == 5*3600+30*60 + ruby_version_is "2.8" do + time.wday.should == 6 + time.yday.should == 1 + end end it "accepts timezone argument that must have #local_to_utc and #utc_to_local methods" do |