Browse Source

Merge branch 'standalone_develop' into trustie_server

pull/330/head
xxq250 3 years ago
parent
commit
aee6651945
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/tasks/commit_log_to_db.rake

+ 1
- 1
lib/tasks/commit_log_to_db.rake View File

@@ -33,7 +33,7 @@ namespace :commit_log_to_db do
user = User.find_by(mail: commiter['email'])
user_id = user&.id || project.user_id
commit_date = Time.parse(commit['commit']['author']['date'])
commit_date_str = commit_date.strftime("%a %b %d %H:%M:%S")
commit_date_str = commit_date.strftime("%Y-%m-%d %H:%M:%S")

data += "(#{user_id},#{project.id},#{project.repository&.id},'#{project.identifier}','#{project.owner.name}/#{project.identifier}','#{commit_sha}','#{ref}',\"#{commit_message}\",'#{commit_date_str}','#{commit_date_str}'),"
end


Loading…
Cancel
Save