From 6b6ea7d06d1181b17fcb551af11b0deab383d1a6 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 7 Jan 2020 15:00:41 +0800 Subject: [PATCH] =?UTF-8?q?sonar=E4=BB=A3=E7=A0=81=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/graduation_tasks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/graduation_tasks_controller.rb b/app/controllers/graduation_tasks_controller.rb index aa7a0eb11..5e48e0139 100644 --- a/app/controllers/graduation_tasks_controller.rb +++ b/app/controllers/graduation_tasks_controller.rb @@ -230,7 +230,7 @@ class GraduationTasksController < ApplicationController o end - filename = "#{@task.name}_#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}.json" + filename = "#{@task.name}_#{Time.now.strftime('%Y%m%d%H%M%S')}.json" json = File.open("/tmp/#{filename}", "w+") json.puts(person_list.to_json) json.close