← All repositories

crossmate

A collaborative crossword app for iPhone and iPad

git clone https://code.inqk.net/crossmate.git


commit 0c7c77acb70c2414977190c00b3d0776666a1363
parent 83b69660bd2b173f77e6a728014b9484e4812694
Author: Michael Camilleri <[email protected]>
Date:   Thu, 14 May 2026 08:06:49 +0900

Use UTC when logging

Diffstat

MCrossmate/Views/DiagnosticsView.swift | 4+++-

1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Crossmate/Views/DiagnosticsView.swift b/Crossmate/Views/DiagnosticsView.swift

@@ -11,6 +11,7 @@ struct DiagnosticsView: View {
         let formatter = DateFormatter()
         formatter.dateStyle = .none
         formatter.timeStyle = .medium
+        formatter.timeZone = TimeZone(secondsFromGMT: 0)
         return formatter
     }()
 
@@ -177,7 +178,7 @@ struct DiagnosticsView: View {
         lines.append("Last Error Description: \(syncMonitor.lastErrorDescription ?? "None")")
         lines.append("Recent Event Count: \(syncMonitor.entries.count)")
         lines.append("")
-        lines.append("Recent Events:")
+        lines.append("Recent Events (UTC):")
         for entry in syncMonitor.entries {
             lines.append(
                 "\(Self.timestampFormatter.string(from: entry.timestamp)) [\(entry.level.uppercased())] \(entry.message)"
@@ -194,6 +195,7 @@ struct ShareDiagnosticsView: View {
         let formatter = DateFormatter()
         formatter.dateStyle = .none
         formatter.timeStyle = .medium
+        formatter.timeZone = TimeZone(secondsFromGMT: 0)
         return formatter
     }()