ruby-changes:2279
From: ko1@a...
Date: 25 Oct 2007 06:24:20 +0900
Subject: [ruby-changes:2279] jeg2 - Ruby:r13770 (trunk): * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that
jeg2 2007-10-25 06:24:09 +0900 (Thu, 25 Oct 2007) New Revision: 13770 Modified files: trunk/ChangeLog trunk/lib/xmlrpc/parser.rb Log: * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that caused time zone conversion to fail for some ISO 8601 date formats. [ruby-Bugs-12677] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13770&r2=13769 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/xmlrpc/parser.rb?r1=13770&r2=13769 Index: ChangeLog =================================================================== --- ChangeLog (revision 13769) +++ ChangeLog (revision 13770) @@ -1,3 +1,9 @@ +Wed Oct 25 06:23:14 2007 James Edward Gray II <jeg2@r...> + + * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that + caused time zone conversion to fail for some ISO 8601 date formats. + [ruby-Bugs-12677] + Wed Oct 25 04:59:28 2007 James Edward Gray II <jeg2@r...> * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start Index: lib/xmlrpc/parser.rb =================================================================== --- lib/xmlrpc/parser.rb (revision 13769) +++ lib/xmlrpc/parser.rb (revision 13770) @@ -92,7 +92,7 @@ if $7 ofs = $8.to_i*3600 + $9.to_i*60 ofs = -ofs if $7=='+' - utc = Time.utc(a.reverse) + ofs + utc = Time.utc(*a) + ofs a = [ utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec ] end XMLRPC::DateTime.new(*a) @@ -106,7 +106,7 @@ if $7 ofs = $8.to_i*3600 + $9.to_i*60 ofs = -ofs if $7=='+' - utc = Time.utc(a.reverse) + ofs + utc = Time.utc(*a) + ofs a = [ utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec ] end XMLRPC::DateTime.new(*a) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml