Let the API return times in UTC for now

This commit is contained in:
simon lehericey 2018-10-31 10:29:03 +01:00
parent 3fc462fb89
commit 2f2f1e1321
6 changed files with 36 additions and 8 deletions

View file

@ -4,4 +4,8 @@ class PieceJustificativeSerializer < ActiveModel::Serializer
:content_url
has_one :user
def created_at
object.created_at&.in_time_zone('UTC')
end
end