ADD format time method

This commit is contained in:
Jasder
2020-11-04 11:21:51 +08:00
parent cfb794c94f
commit 58d8c911a8
3 changed files with 12 additions and 2 deletions

View File

@@ -9,5 +9,6 @@ json.committer do
end
json.timestamp render_unix_time(commit['Committer']['When'])
json.time_from_now time_from_now(commit['Committer']['When'])
json.created_at render_format_time_with_date(commit['Committer']['When'])
json.message commit['CommitMessage']
json.sha commit['Sha']