datetime is not available at this point (#7630)

This commit is contained in:
Joffrey JAFFEUX 2019-05-29 14:06:32 +02:00 committed by GitHub
parent 6439004161
commit 630e9814bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)'

View File

@ -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)