mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Use JSON date serializer
Effective API changes:
- nil serializes to null, not empty string
- dates serialize to IETF RFC 3339 with millisecond precision, not
second precision surrounded by spaces
This commit is contained in:
parent
b60257ef59
commit
397341a324
4 changed files with 8 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ describe EventScheduleSerializer, type: :serializer do
|
|||
|
||||
it 'sets date and room' do
|
||||
expected_json = {
|
||||
date: ' 2000-01-02T03:04:05+0000 ',
|
||||
date: '2000-01-02T03:04:05.000Z',
|
||||
room: event_schedule.room.guid
|
||||
}.to_json
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue