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.52.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.51.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.50.1 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.50.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.49.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.48.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.47.1 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.47.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.46.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.45.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.44.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.43.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.42.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.41.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.40.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.39.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.38.1 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.38.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.37.0 lib/pact_broker/api/decorators/format_date_time.rb
pact_broker-2.36.1 lib/pact_broker/api/decorators/format_date_time.rb