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

@ -18,6 +18,10 @@ class ProcedureSerializer < ActiveModel::Serializer
has_many :types_de_champ_private, serializer: TypeDeChampSerializer
has_many :types_de_piece_justificative, serializer: TypeDePieceJustificativeSerializer
def archived_at
object.archived_at&.in_time_zone('UTC')
end
def link
if object.path.present?
if object.brouillon_avec_lien?