Commit 5daba9af50ab749a33af39ae2f81ecf9a8c2bdbb
1 parent
35e6a949
Exists in
master
and in
29 other branches
stoa-api: return birth_date on iso8601 format
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
plugins/stoa/lib/stoa_plugin/person_api.rb
... | ... | @@ -19,6 +19,10 @@ class StoaPlugin::PersonApi < Noosfero::FieldsDecorator |
19 | 19 | context.url_for(url) |
20 | 20 | end |
21 | 21 | |
22 | + def birth_date | |
23 | + object.birth_date.strftime('%F') | |
24 | + end | |
25 | + | |
22 | 26 | def image_base64 |
23 | 27 | Base64.encode64(image.current_data) if image && image.current_data |
24 | 28 | end | ... | ... |