lib/voom/presenters/helpers/date.rb in voom-presenters-0.1.13 vs lib/voom/presenters/helpers/date.rb in voom-presenters-0.2.0

- old
+ new

@@ -1,12 +1,12 @@ module Voom module Presenters module Helpers module Date - LONG_FORMAT='%m/%d/%Y' - SHORT_FORMAT='%d %b %Y' + LONG_FORMAT='%B %e, %Y' + SHORT_FORMAT='%e %b' - def format_date(date, format: '%m/%d/%Y') + def format_date(date, format: LONG_FORMAT) date ? date.strftime(format) : '' end def format_date_long(time, format: nil) format_date(time, format: format||LONG_FORMAT)