* 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]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
jeg2 2007-10-24 21:24:09 +00:00
Родитель 7e2c0cbda2
Коммит 6b63368278
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Wed Oct 25 06:23:14 2007 James Edward Gray II <jeg2@ruby-lang.org>
* 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@ruby-lang.org>
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start

Просмотреть файл

@ -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)