Sha256: f1c00ae9417fb7fcb153847ca7c99f402cb8b210624c47915f83fa42fe3a45d1

Contents?: true

Size: 218 Bytes

Versions: 12

Compression:

Stored size: 218 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kaui-0.4.2 app/helpers/kaui/date_helper.rb
kaui-0.4.1 app/helpers/kaui/date_helper.rb
kaui-0.4.0 app/helpers/kaui/date_helper.rb
kaui-0.3.1 app/helpers/kaui/date_helper.rb
kaui-0.3.0 app/helpers/kaui/date_helper.rb
kaui-0.2.6 app/helpers/kaui/date_helper.rb
kaui-0.2.5 app/helpers/kaui/date_helper.rb
kaui-0.2.4 app/helpers/kaui/date_helper.rb
kaui-0.2.3 app/helpers/kaui/date_helper.rb
kaui-0.2.2 app/helpers/kaui/date_helper.rb
kaui-0.2.1 app/helpers/kaui/date_helper.rb
kaui-0.2.0 app/helpers/kaui/date_helper.rb