diff --git a/lib/towerops_web/live/agent_live/helpers.ex b/lib/towerops_web/live/agent_live/helpers.ex index 449a6863..8efae5f5 100644 --- a/lib/towerops_web/live/agent_live/helpers.ex +++ b/lib/towerops_web/live/agent_live/helpers.ex @@ -108,9 +108,10 @@ defmodule ToweropsWeb.AgentLive.Helpers do Returns strings like "5m ago (Jan 15, 2026 at 2:34 PM EST)". """ + def format_last_seen_with_date(datetime, timezone \\ "UTC") def format_last_seen_with_date(nil, _timezone), do: "Never" - def format_last_seen_with_date(datetime, timezone \\ "UTC") do + def format_last_seen_with_date(datetime, timezone) do relative = format_last_seen(datetime) full = format_datetime(datetime, timezone) "#{relative} (#{full})"