Method: Fortifier::DateHelper#american_date_time

Defined in:
app/helpers/fortifier/date_helper.rb

#american_date_time(date) ⇒ Object



34
35
36
37
# File 'app/helpers/fortifier/date_helper.rb', line 34

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