1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Backport r24500; fixes #2556.

* lib/date.rb (complete_frags): Monday must be suitable for %W's
  default day.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2011-07-17 09:32:04 +00:00
parent d040bf7593
commit ffd9245af6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Jul 17 18:24:22 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.
Sun Jul 17 17:52:19 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (flo_cmp): Infinity is greater than any bignum

View file

@ -879,7 +879,7 @@ class Date
elem[e] = d.__send__(e)
end
elem[:wnum1] ||= 0
elem[:wday] ||= 0
elem[:wday] ||= 1
end
end