Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1546

Show
Ignore:
Timestamp:
05/12/05 02:42:21 (4 years ago)
Author:
nahi
Message:

fixes for #105. test should be added.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/mapping/factory.rb

    r1520 r1546  
    169169      end 
    170170    elsif obj_class == Date 
     171      obj = node.to_date 
     172    elsif obj_class == DateTime 
    171173      obj = node.data 
    172174    else 
  • trunk/lib/soap/mapping/registry.rb

    r1543 r1546  
    248248    [::String,       ::SOAP::SOAPString,     StringFactory], 
    249249    [::DateTime,     ::SOAP::SOAPDateTime,   DateTimeFactory], 
    250     [::Date,         ::SOAP::SOAPDateTime,   DateTimeFactory], 
     250    [::Date,         ::SOAP::SOAPDate,       DateTimeFactory], 
    251251    [::Time,         ::SOAP::SOAPDateTime,   DateTimeFactory], 
    252252    [::Time,         ::SOAP::SOAPTime,       DateTimeFactory], 
     
    311311    [::String,       ::SOAP::SOAPString,     StringFactory], 
    312312    [::DateTime,     ::SOAP::SOAPDateTime,   DateTimeFactory], 
    313     [::Date,         ::SOAP::SOAPDateTime,   DateTimeFactory], 
    314313    [::Date,         ::SOAP::SOAPDate,       DateTimeFactory], 
    315314    [::Time,         ::SOAP::SOAPDateTime,   DateTimeFactory], 
  • trunk/lib/xsd/datatypes.rb

    r1545 r1546  
    512512  end 
    513513 
     514  def to_date 
     515    Date.new0(@data.class.jd_to_ajd(@data.jd, 0, 0), 0, @data.sg) 
     516  end 
     517 
    514518  def tz2of(str) 
    515519    /^(?:Z|(?:([+\-])(\d\d):(\d\d))?)$/ =~ str