Module: Kaui::DateHelper
- Defined in:
- app/helpers/kaui/date_helper.rb
Instance Method Summary collapse
Instance Method Details
#format_date(date, timezone = "Pacific Time (US & Canada)") ⇒ Object
3 4 5 6 |
# File 'app/helpers/kaui/date_helper.rb', line 3 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 |