mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Add date to Article JSON representation
This commit is contained in:
parent
6f8757b620
commit
bd9a1b4aa5
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ module WezM
|
||||||
{
|
{
|
||||||
:title => article[:title],
|
:title => article[:title],
|
||||||
:path => article.identifier,
|
:path => article.identifier,
|
||||||
|
:date => Time.parse(article[:created_at]).rfc2822,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue