From c1feb58d38142e935e409b69f7cebc0f1aa25ba4 Mon Sep 17 00:00:00 2001 From: tadf Date: Tue, 11 Aug 2009 14:14:41 +0000 Subject: * 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 --- lib/date.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 # @@ -927,7 +927,7 @@ class Date elem[e] = d.__send__(e) end elem[:wnum1] ||= 0 - elem[:wday] ||= 0 + elem[:wday] ||= 1 end end -- cgit