lib/voom/presenters/helpers/time.rb in voom-presenters-0.1.13 vs lib/voom/presenters/helpers/time.rb in voom-presenters-0.2.0
- old
+ new
@@ -5,10 +5,10 @@
module Helpers
module Time
LONG_FORMAT='%m/%d/%Y %I:%M:%S %p %Z'
SHORT_FORMAT='%d %b %H:%M %Z'
- def format_time(time, format: '%m/%d/%Y %I:%M:%S %p %Z', timezone: nil)
+ def format_time(time, format: LONG_FORMAT, timezone: nil)
return '' unless time
time = time.in_time_zone(timezone) if timezone
time.strftime(format)
end