diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-08-08 23:08:29 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-08-08 23:48:09 +0900 |
commit | e0dfa5967e7063da8b65dc3c062ef4652e246e34 (patch) | |
tree | 02b9e845db7ad78437a2c8319951c0d93de9aaef /spec/ruby/library/datetime | |
parent | a24c607e30b5a74ef53e9a2c1e630dea46151a84 (diff) |
[Bug #18946] Use Gregorian dates to test
Diffstat (limited to 'spec/ruby/library/datetime')
-rw-r--r-- | spec/ruby/library/datetime/to_time_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/datetime/to_time_spec.rb b/spec/ruby/library/datetime/to_time_spec.rb index a11b6e30e1..a03ab67867 100644 --- a/spec/ruby/library/datetime/to_time_spec.rb +++ b/spec/ruby/library/datetime/to_time_spec.rb @@ -7,10 +7,10 @@ describe "DateTime#to_time" do end it "returns a Time representing the same instant" do - datetime = DateTime.civil(3, 12, 31, 23, 58, 59) + datetime = DateTime.civil(2012, 12, 31, 23, 58, 59) time = datetime.to_time.utc - time.year.should == 3 + time.year.should == 2012 time.month.should == 12 time.day.should == 31 time.hour.should == 23 |