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

Changeset 1543

Show
Ignore:
Timestamp:
05/11/05 18:59:26 (4 years ago)
Author:
nahi
Message:

private method `hour' called for Date (not DateTime?) mapping. test should be written. related to #105.

Files:

Legend:

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

    r1540 r1543  
    249249    [::DateTime,     ::SOAP::SOAPDateTime,   DateTimeFactory], 
    250250    [::Date,         ::SOAP::SOAPDateTime,   DateTimeFactory], 
    251     [::Date,         ::SOAP::SOAPDate,       DateTimeFactory], 
    252251    [::Time,         ::SOAP::SOAPDateTime,   DateTimeFactory], 
    253252    [::Time,         ::SOAP::SOAPTime,       DateTimeFactory], 
  • trunk/lib/xsd/datatypes.rb

    r1520 r1543  
    540540 
    541541  def screen_data(t) 
    542     if (t.is_a?(Date)
     542    if t.is_a?(DateTime
    543543      t 
    544     elsif (t.is_a?(Time)
     544    elsif t.is_a?(Time
    545545      sec, min, hour, mday, month, year = t.to_a[0..5] 
    546546      diffday = t.usec.to_r / 1000000 / SecInDay