~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to lib/xmlrpc/parser.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
4
4
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
5
5
#
6
 
# $Id: parser.rb 11708 2007-02-12 23:01:19Z shyouhei $
 
6
# $Id: parser.rb 13770 2007-10-24 21:24:09Z jeg2 $
7
7
#
8
8
 
9
9
 
92
92
        if $7
93
93
          ofs = $8.to_i*3600 + $9.to_i*60
94
94
          ofs = -ofs if $7=='+'
95
 
          utc = Time.utc(a.reverse) + ofs
 
95
          utc = Time.utc(*a) + ofs
96
96
          a = [ utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec ]
97
97
        end
98
98
        XMLRPC::DateTime.new(*a)
106
106
        if $7
107
107
          ofs = $8.to_i*3600 + $9.to_i*60
108
108
          ofs = -ofs if $7=='+'
109
 
          utc = Time.utc(a.reverse) + ofs
 
109
          utc = Time.utc(*a) + ofs
110
110
          a = [ utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec ]
111
111
        end
112
112
        XMLRPC::DateTime.new(*a)