use of Rails I18n data format in EventSerializer #598
This commit is contained in:
parent
835236ed7f
commit
775e3d8bca
4 changed files with 17 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ class EventSerializer < ActiveModel::Serializer
|
|||
|
||||
def date
|
||||
t = object.start_time
|
||||
t.blank? ? '' : %{ #{t.time.strftime('%Y-%m-%dT%H:%M:%S')}#{t.formatted_offset(false)} }
|
||||
t.blank? ? '' : %{ #{l t , format: :short}#{t.formatted_offset(false)} }
|
||||
end
|
||||
|
||||
def speaker_ids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue