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
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue