From 79cd8bd646cb8654a7032f7dba9e61b2dfa46d16 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Tue, 4 Jun 2019 16:59:05 -0300 Subject: [PATCH] Fix Time.now deprecation warning --- src/kemal/log_handler.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal/log_handler.cr b/src/kemal/log_handler.cr index 517857a..fe902f2 100644 --- a/src/kemal/log_handler.cr +++ b/src/kemal/log_handler.cr @@ -7,7 +7,7 @@ module Kemal def call(context : HTTP::Server::Context) elapsed_time = Time.measure { call_next(context) } elapsed_text = elapsed_text(elapsed_time) - @io << Time.now << ' ' << context.response.status_code << ' ' << context.request.method << ' ' << context.request.resource << ' ' << elapsed_text << '\n' + @io << Time.utc << ' ' << context.response.status_code << ' ' << context.request.method << ' ' << context.request.resource << ' ' << elapsed_text << '\n' context end