Module: Services::ApplicationHelper

Defined in:
app/helpers/services/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#american_date_time(date) ⇒ Object



3
4
5
6
# File 'app/helpers/services/application_helper.rb', line 3

def american_date_time(date)
  return nil if date.nil?
  (date.is_a?(Date) || date.is_a?(Time)) ? (date.is_a?(Time) ? date.in_time_zone(DISPLAY_TIME_ZONE).strftime("%-m/%-d/%Y %H:%M:%S") : date.strftime("%-m/%-d/%Y %H:%M:%S")) : date
end