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 | c1feb58d38142e935e409b69f7cebc0f1aa25ba4 (patch) | |
| tree | dfad441a5496e6c6bbe14417aa8fc6cd6ca8e276 /lib | |
| parent | 0da4b3a164319dc71d0fa32b072dcd3f874c87b2 (diff) | |
| download | ruby-c1feb58d38142e935e409b69f7cebc0f1aa25ba4.tar.gz ruby-c1feb58d38142e935e409b69f7cebc0f1aa25ba4.tar.xz ruby-c1feb58d38142e935e409b69f7cebc0f1aa25ba4.zip | |
* lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 ce1d32712..f3edb5374 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 <william@williamwebber.com> # @@ -927,7 +927,7 @@ class Date elem[e] = d.__send__(e) end elem[:wnum1] ||= 0 - elem[:wday] ||= 0 + elem[:wday] ||= 1 end end |
