From ba56dee1ca2d1839d3f5ee2a48c2bd7030d6247e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 10 Feb 2026 09:15:41 -0600 Subject: [PATCH] remove date helper --- lib/towerops_web/live/agent_live/helpers.ex | 14 +------------- priv/static/changelog.txt | 7 +++++-- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/lib/towerops_web/live/agent_live/helpers.ex b/lib/towerops_web/live/agent_live/helpers.ex index 3e9cf0f0..460e69a2 100644 --- a/lib/towerops_web/live/agent_live/helpers.ex +++ b/lib/towerops_web/live/agent_live/helpers.ex @@ -125,19 +125,7 @@ defmodule ToweropsWeb.AgentLive.Helpers do """ def format_agent_version(version) when is_binary(version) do if String.match?(version, ~r/^\d{4}-\d{2}-\d{2}T/) do - date = String.slice(version, 0, 10) - - friendly = - case Date.from_iso8601(date) do - {:ok, d} -> - month = Enum.at(~w(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec), d.month - 1) - " (#{month} #{d.day}, #{d.year})" - - _ -> - "" - end - - "#{version}#{friendly}" + version else "v#{version}" end diff --git a/priv/static/changelog.txt b/priv/static/changelog.txt index a9745b27..6db16123 100644 --- a/priv/static/changelog.txt +++ b/priv/static/changelog.txt @@ -3,9 +3,12 @@ Devices Tested & Working * Ubiquiti AC, LTU, AirFiber * Cambium ePMP -20226-02-08 -* Security improvements +2026-02-10 +* Update agent to show version based on compile date instead of old stuck version +2026-02-08 +* Security improvements +* Massive snmp engine refactoring 2026-02-06 * Improve reliability of SNMP polling