diff --git a/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex b/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex index 10ea528f77..aec1a65be8 100644 --- a/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex +++ b/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex @@ -39,7 +39,7 @@ defmodule TransportWeb.Plugs.WorkerHealthcheck do def app_started_recently? do start_datetime = app_start_datetime() {delay, unit} = @app_start_waiting_delay - DateTime.before?(start_datetime, DateTime.add(start_datetime, delay, unit)) + DateTime.before?(DateTime.utc_now(), DateTime.add(start_datetime, delay, unit)) end def app_start_datetime do