Sha256: 3732e06d8a5b82a150d105205f74443d6178c97fce2247590959dfb34c511bcb

Contents?: true

Size: 549 Bytes

Versions: 170

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

# require 'activesupport/time'
# module ActiveSupport
#   class TimeWithZone
#     def to_s(format = :default)
#       if format == :db
#         utc.to_s(format)
#       elsif formatter = ::Time::DATE_FORMATS[format]
#         formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
#       else
#         # "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" # mimicking Ruby Time#to_s format
#         time.strftime('%d/%m/%Y %H:%M')
#       end
#     end
#   end
# end

Version data entries

170 entries across 170 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.26 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.25 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.24 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.24.pre.5 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.24.pre.4 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.24.pre.3 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.23 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.22 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.22.pre.3 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.22.pre.2 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.22.pre.1 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.11 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.10 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.9 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.8 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.7 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.6 pg_engine/lib/pg_engine/core_ext.rb
pg_rails-7.6.21.pre.5 pg_engine/lib/pg_engine/core_ext.rb