新增:时间返回

This commit is contained in:
yystopf 2024-07-04 15:12:31 +08:00
parent 90fa4774d8
commit 389a72b0a1
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ if tag.present? && tag.is_a?(Hash)
end
json.time_ago time_from_now(tag['tagger']['date'].to_time)
json.created_at_unix tag['tagger']['date'].to_time.to_i
json.created_time tag['tagger']['date'].to_time
json.message tag['message']
json.commit do
json.sha tag['commit']['sha']