Sha256: 1576f3189bb94310172b66d0c000bcd1a4093868a5be654be7290b6b83975462

Contents?: true

Size: 315 Bytes

Versions: 86

Compression:

Stored size: 315 Bytes

Contents

module PactBroker
  module Api
    module Decorators
      module FormatDateTime
        def self.call(date_time)
          date_time.to_time.utc.to_datetime.xmlschema if date_time
        end

        def format_date_time(date_time)
          FormatDateTime.call(date_time)
        end
      end
    end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
pact_broker-2.93.3 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.93.2 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.93.1 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.93.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.92.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.91.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.90.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.89.1 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.89.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.88.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.87.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.86.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.85.1 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.85.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.84.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.83.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.82.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.81.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.80.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.79.1 lib/pact_broker/api/decorators/format_date_time.rb