refactor due date tag on todo for mobile and non-mobile view

This commit is contained in:
Reinier Balt 2014-07-17 13:56:08 +02:00
parent b7126998b2
commit bafd55cf09
4 changed files with 82 additions and 65 deletions

View file

@ -106,7 +106,7 @@ class ApplicationController < ActionController::Base
# config/settings.yml
#
def format_date(date)
return date ? date.in_time_zone(prefs.time_zone).strftime("#{prefs.date_format}") : ''
return prefs.format_date(date)
end
def for_autocomplete(coll, substr)