diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-11 14:14:41 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-11 14:14:41 +0000 |
commit | 8e6a754b5db75eda8be13a4b08c998d4f36551cd (patch) | |
tree | dfad441a5496e6c6bbe14417aa8fc6cd6ca8e276 /lib/date.rb | |
parent | 3aabcaa3dab84018b9dfd7edf7ad5c48f007e6f3 (diff) |
* lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r-- | lib/date.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date.rb b/lib/date.rb index ce1d327127..f3edb5374b 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -1,7 +1,7 @@ # # date.rb - date and time library # -# Author: Tadayoshi Funaba 1998-2008 +# Author: Tadayoshi Funaba 1998-2009 # # Documentation: William Webber <[email protected]> # @@ -927,7 +927,7 @@ class Date elem[e] = d.__send__(e) end elem[:wnum1] ||= 0 - elem[:wday] ||= 0 + elem[:wday] ||= 1 end end |