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
|
:speaker_ids, :type, :room, :track
|
||||||
|
|
||||||
def date
|
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
|
end
|
||||||
|
|
||||||
def speaker_ids
|
def speaker_ids
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue