From fac4b552424ce0a8ffd61fef95d46e7166cfbecd Mon Sep 17 00:00:00 2001 From: bnux Date: Sat, 11 Apr 2026 17:15:26 -0700 Subject: [PATCH] Add timestamp to exported application log filename Exported logs were always named "Meshtastic Application Logs.csv", making it difficult to differentiate between multiple exports. The default filename now includes a timestamp in yyyy-MM-dd_HHmmss format. --- Meshtastic/Views/Settings/AppLog.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Views/Settings/AppLog.swift b/Meshtastic/Views/Settings/AppLog.swift index 08c09664..b9583b29 100644 --- a/Meshtastic/Views/Settings/AppLog.swift +++ b/Meshtastic/Views/Settings/AppLog.swift @@ -171,7 +171,7 @@ struct AppLog: View { isPresented: $isExporting, document: CsvDocument(emptyCsv: exportString), contentType: .commaSeparatedText, - defaultFilename: String("Meshtastic Application Logs"), + defaultFilename: "Meshtastic Application Logs \({ let f = DateFormatter(); f.dateFormat = "yyyy-MM-dd_HHmmss"; return f.string(from: .now) }())", onCompletion: { result in switch result { case .success: