diff --git a/ChangeLog b/ChangeLog index 1eec3eaab1..9c0e825f79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 25 06:23:14 2007 James Edward Gray II + + * 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 * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start diff --git a/lib/xmlrpc/parser.rb b/lib/xmlrpc/parser.rb index d27d7c3827..6d10fde9d9 100644 --- a/lib/xmlrpc/parser.rb +++ b/lib/xmlrpc/parser.rb @@ -92,7 +92,7 @@ module XMLRPC 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 @@ module XMLRPC 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)