From 630e9814bcd74f16705dc46465155d0b14f6e484 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 29 May 2019 14:06:32 +0200 Subject: [PATCH] datetime is not available at this point (#7630) --- lib/tasks/docker.rake | 2 +- script/docker_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake index 6aabe3b9d66..d5f0a8a1c08 100644 --- a/lib/tasks/docker.rake +++ b/lib/tasks/docker.rake @@ -49,7 +49,7 @@ def run_or_fail_prettier(*patterns) end def log(message) - puts "[#{DateTime.now.strftime("%Y-%m-%d %H:%M:%S")}] #{message}" + puts "[#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}] #{message}" end desc 'Run all tests (JS and code in a standalone environment)' diff --git a/script/docker_test.rb b/script/docker_test.rb index eeae0f29b19..445901b8517 100644 --- a/script/docker_test.rb +++ b/script/docker_test.rb @@ -11,7 +11,7 @@ puts "travis_fold:end:starting_docker_container" if ENV["TRAVIS"] def log(message) - puts "[#{DateTime.now.strftime("%Y-%m-%d %H:%M:%S")}] #{message}" + puts "[#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}] #{message}" end def run_or_fail(command)