diff --git a/Localizable.xcstrings b/Localizable.xcstrings index d3cc60ca..b18b2c18 100644 --- a/Localizable.xcstrings +++ b/Localizable.xcstrings @@ -4251,6 +4251,9 @@ } } } + }, + "Community Support" : { + }, "Config" : { "localizations" : { @@ -10673,6 +10676,9 @@ } } } + }, + "Full Support" : { + }, "gas" : { "extractionState" : "manual", diff --git a/Meshtastic/Extensions/Date.swift b/Meshtastic/Extensions/Date.swift index 2cbd37b3..d8cdd30f 100644 --- a/Meshtastic/Extensions/Date.swift +++ b/Meshtastic/Extensions/Date.swift @@ -10,7 +10,7 @@ import Foundation extension Date { var lastHeard: String { - if self.timeIntervalSince1970 > 0 && self < Calendar.current.date(byAdding: .day, value: 1, to: Date())! { + if self.timeIntervalSince1970 > 0 && self < Calendar.current.date(byAdding: .year, value: 1, to: Date())! { formatted() } else { "unknown.age".localized @@ -20,7 +20,7 @@ extension Date { func formattedDate(format: String) -> String { let dateformat = DateFormatter() dateformat.dateFormat = format - if self.timeIntervalSince1970 > 0 && self < Calendar.current.date(byAdding: .day, value: 1, to: Date())! { + if self.timeIntervalSince1970 > 0 && self < Calendar.current.date(byAdding: .year, value: 1, to: Date())! { return dateformat.string(from: self) } else { return "unknown.age".localized diff --git a/Meshtastic/Views/Nodes/Helpers/NodeInfoItem.swift b/Meshtastic/Views/Nodes/Helpers/NodeInfoItem.swift index 9f3b8105..6a8f468a 100644 --- a/Meshtastic/Views/Nodes/Helpers/NodeInfoItem.swift +++ b/Meshtastic/Views/Nodes/Helpers/NodeInfoItem.swift @@ -22,12 +22,12 @@ struct NodeInfoItem: View { if user.hwModel != "UNSET" { VStack(alignment: .center) { Spacer() - Image(systemName: currentDevice?.activelySupported ?? false ? "checkmark.seal.fill" : "x.circle") + Image(systemName: currentDevice?.activelySupported ?? false ? "checkmark.seal.fill" : "seal.fill") .resizable() .aspectRatio(contentMode: .fill) .frame(width: 75, height: 75) .foregroundStyle(currentDevice?.activelySupported ?? false ? .green : .red) - Text( currentDevice?.activelySupported ?? false ? "Supported" : "Unsupported") + Text( currentDevice?.activelySupported ?? false ? "Full Support" : "Community Support") .foregroundStyle(.gray) .font(.callout) }