0
0
Fork 0

Change last_status_at to be a date, not datetime (#12966)

* Return last_status_at as date, not datetime

* Fix relative timestamp for dates when delay is inferior to 1 day

* Also fix public directory

* Fix error when last_status_at isn't set
This commit is contained in:
ThibG 2020-01-26 23:13:48 +01:00 committed by Eugen Rochko
parent 401f32f9ee
commit 42d2a915e4
4 changed files with 17 additions and 7 deletions

View file

@ -55,4 +55,8 @@ class REST::AccountSerializer < ActiveModel::Serializer
def moved_and_not_nested?
object.moved? && object.moved_to_account.moved_to_account_id.nil?
end
def last_status_at
object.last_status_at&.to_date&.iso8601
end
end