From 8e6a754b5db75eda8be13a4b08c998d4f36551cd 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: svn+ssh://ci.ruby-lang.org/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 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 # @@ -927,7 +927,7 @@ class Date elem[e] = d.__send__(e) end elem[:wnum1] ||= 0 - elem[:wday] ||= 0 + elem[:wday] ||= 1 end end -- cgit v1.2.3