remove date helper
This commit is contained in:
parent
fce1a8b229
commit
ba56dee1ca
2 changed files with 6 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue