datetime is not available at this point (#7630)

datetime is not available at this point (#7630)

diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake
index 6aabe3b..d5f0a8a 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 eeae0f2..445901b 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)

GitHub sha: 630e9814