Browse Source

新增:时间返回

pull/347/head
yystopf 2 years ago
parent
commit
389a72b0a1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/views/api/v1/projects/tags/_simple_gitea_index_detail.json.jbuilder

+ 1
- 0
app/views/api/v1/projects/tags/_simple_gitea_index_detail.json.jbuilder 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']


Loading…
Cancel
Save