mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Made use of Rails I18n data format in EventSerializer #598
This commit is contained in:
parent
10ef898a0d
commit
70b8fca197
4 changed files with 14 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