Changes for dat and time format

Impression bug when some i18n missing in impressionable object
JS bug in ad_banner edit title
This commit is contained in:
Christophe Vilayphiou committed 2012-05-18 19:42:36 +08:00
1 parent e1bd5d8c8d
commit 4d33c7a56d
24 files changed
+57 -46

No files matched your search

+8
View File
@@ -204,4 +204,12 @@ module ApplicationHelper
is_manager? || is_admin?
end
def display_date_time(object)
object.strftime("%Y-%m-%d %H:%M:%S")
end
def display_date(object)
object.strftime("%Y-%m-%d")
end
end