Sha256: 85445cc0b6d7ffba0c66225601516575d5786197ad8d610171a3b8b2e694b0f0

Contents?: true

Size: 240 Bytes

Versions: 16

Compression:

Stored size: 240 Bytes

Contents

module Kaui
  module DateHelper
    def format_date(date)
      # TODO: make timezone configurable
      parsed_date = DateTime.parse(date.to_s).in_time_zone("Pacific Time (US & Canada)")
      parsed_date.to_s(:date_only)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kaui-0.1.18 app/helpers/kaui/date_helper.rb
kaui-0.1.17 app/helpers/kaui/date_helper.rb
kaui-0.1.16 app/helpers/kaui/date_helper.rb
kaui-0.1.15 app/helpers/kaui/date_helper.rb
kaui-0.1.14 app/helpers/kaui/date_helper.rb
kaui-0.1.12 app/helpers/kaui/date_helper.rb
kaui-0.1.11 app/helpers/kaui/date_helper.rb
kaui-0.1.10 app/helpers/kaui/date_helper.rb
kaui-0.1.9 app/helpers/kaui/date_helper.rb
kaui-0.1.8 app/helpers/kaui/date_helper.rb
kaui-0.1.7 app/helpers/kaui/date_helper.rb
kaui-0.1.6 app/helpers/kaui/date_helper.rb
kaui-0.1.5 app/helpers/kaui/date_helper.rb
kaui-0.1.4 app/helpers/kaui/date_helper.rb
kaui-0.1.3 app/helpers/kaui/date_helper.rb
kaui-0.1.2 app/helpers/kaui/date_helper.rb