From 472af2e7664910cb2de379c3125a19f202cc30c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Fri, 26 Jan 2024 18:27:16 +0300 Subject: [PATCH] d --- app/Podfile.lock | 4 ++-- src/App.swift | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/Podfile.lock b/app/Podfile.lock index ea122f5..65ba89b 100644 --- a/app/Podfile.lock +++ b/app/Podfile.lock @@ -1,6 +1,6 @@ PODS: - AELog (0.6.3) - - BusX (2024.01.16) + - BusX (2024.01.26) - MeetupIdX (2023.12.31): - AELog - BusX @@ -34,7 +34,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: AELog: f732b70f7a9d1b4c6a3676304192b3908f362133 - BusX: 7c7675152d44023781c7d46cda3617ceee41312f + BusX: cec0d774212a449bed1896ad7d7bb9c4c53e0cbd MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308 MicX: 6ffa81f29a477a66cde277e3ade3de8ce2d47b91 MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185 diff --git a/src/App.swift b/src/App.swift index 1dbdd4c..97e8df1 100644 --- a/src/App.swift +++ b/src/App.swift @@ -11,8 +11,9 @@ struct Content: View { @StateObject var adates = BusUI.Value(Mic.K.activityDates, [String: Date]()) - func val(_ k: String) -> Date { - adates.v[k] ?? .distantPast + func val(_ k: String) -> String { + let dt = adates.v[k] ?? .distantPast + return String(describing: Int(dt.timeIntervalSince1970)) } var body: some View { @@ -33,7 +34,7 @@ struct Content: View { .padding() List { ForEach(ids, id: \.self) { - Text("\($0): \(val($0).timeIntervalSince1970)") + Text("\($0): \(val($0))") } } }