Let the API return times in UTC for now
This commit is contained in:
parent
3fc462fb89
commit
2f2f1e1321
6 changed files with 36 additions and 8 deletions
|
@ -4,6 +4,10 @@ class CommentaireSerializer < ActiveModel::Serializer
|
|||
:created_at,
|
||||
:attachment
|
||||
|
||||
def created_at
|
||||
object.created_at&.in_time_zone('UTC')
|
||||
end
|
||||
|
||||
def attachment
|
||||
object.file_url
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue