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