Sha256: fb75f44ca42d68945e43c5719abe191a6af99536e01f2efc536d7421c1debf81

Contents?: true

Size: 333 Bytes

Versions: 24

Compression:

Stored size: 333 Bytes

Contents

# Work around ecto problem
module XMLRPC
  module Convert
    def self.dateTime(str)
      if str =~ /^(-?\d\d\d\d)(\d\d)(\d\d)T(\d\d):(\d\d):(\d\d)Z?$/ then
        a = [$1, $2, $3, $4, $5, $6].collect{|i| i.to_i}
        XMLRPC::DateTime.new(*a)
      else
        raise "wrong dateTime.iso8601 format"
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
typo-3.99.0 lib/xmlrpc_fix.rb
typo-3.99.2 lib/xmlrpc_fix.rb
typo-3.99.3 lib/xmlrpc_fix.rb
typo-3.99.1 lib/xmlrpc_fix.rb
typo-4.0.1 lib/xmlrpc_fix.rb
typo-4.0.2 lib/xmlrpc_fix.rb
typo-3.99.4 lib/xmlrpc_fix.rb
typo-4.0.0 lib/xmlrpc_fix.rb
typo-4.1.1 lib/xmlrpc_fix.rb
typo-4.0.3 lib/xmlrpc_fix.rb
typo-5.0.2 lib/xmlrpc_fix.rb
typo-4.1 lib/xmlrpc_fix.rb
typo-5.0.1 lib/xmlrpc_fix.rb
typo-5.0.3.98.1 lib/xmlrpc_fix.rb
typo-5.0 lib/xmlrpc_fix.rb
typo-5.0.3.98 lib/xmlrpc_fix.rb
typo-5.1.1 lib/xmlrpc_fix.rb
typo-5.1.2 lib/xmlrpc_fix.rb
typo-5.1.3 lib/xmlrpc_fix.rb
typo-5.1 lib/xmlrpc_fix.rb