mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Changing date format in JSON API to match suseconferenceclient expectations
This commit is contained in:
parent
7f3c8a65de
commit
0c20151de8
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ class EventSerializer < ActiveModel::Serializer
|
|||
:speaker_ids, :type, :room, :track
|
||||
|
||||
def date
|
||||
object.start_time
|
||||
t = object.start_time
|
||||
t.blank? ? "" : %(#{t.time.strftime("%Y-%m-%dT%H:%M:%S")}#{t.formatted_offset(false)})
|
||||
end
|
||||
|
||||
def speaker_ids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue