mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 00:11:22 +08:00
Change format of updated_at for asset to include time [SCI-9848] (#6823)
This commit is contained in:
parent
9b97e397ed
commit
230500f60b
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class AssetSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def updated_at_formatted
|
def updated_at_formatted
|
||||||
I18n.l(object.updated_at, format: :full_date) if object.updated_at
|
I18n.l(object.updated_at, format: :full_with_comma) if object.updated_at
|
||||||
end
|
end
|
||||||
|
|
||||||
def parent_type
|
def parent_type
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue