新增:时间返回
This commit is contained in:
parent
90fa4774d8
commit
389a72b0a1
|
@ -12,6 +12,7 @@ if tag.present? && tag.is_a?(Hash)
|
||||||
end
|
end
|
||||||
json.time_ago time_from_now(tag['tagger']['date'].to_time)
|
json.time_ago time_from_now(tag['tagger']['date'].to_time)
|
||||||
json.created_at_unix tag['tagger']['date'].to_time.to_i
|
json.created_at_unix tag['tagger']['date'].to_time.to_i
|
||||||
|
json.created_time tag['tagger']['date'].to_time
|
||||||
json.message tag['message']
|
json.message tag['message']
|
||||||
json.commit do
|
json.commit do
|
||||||
json.sha tag['commit']['sha']
|
json.sha tag['commit']['sha']
|
||||||
|
|
Loading…
Reference in New Issue