ops: dates shown as DD.MM.YYYY (bot, digest, reminders, BroV)

Storage and the API stay ISO; ru_day() formats every user-facing date, Claude is asked
to write dates in its replies the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-10 03:21:24 +03:00
parent 549f8d046d
commit e47b97a462
5 changed files with 33 additions and 14 deletions
+7 -1
View File
@@ -322,12 +322,18 @@ struct OpsRow: View {
}
private var subtitle: String {
var parts = [item.date]
var parts = [Self.ruDay(item.date)]
if let a = item.amount { parts.append("\(a.formatted()) \(item.currency ?? "")") }
if !item.client.isEmpty { parts.append(item.client) }
return parts.joined(separator: " · ")
}
/// 2026-11-15 → 15.11.2026
static func ruDay(_ iso: String) -> String {
let p = iso.prefix(10).split(separator: "-")
return p.count == 3 ? "\(p[2]).\(p[1]).\(p[0])" : iso
}
private func small(_ symbol: String, _ help: String, _ action: @escaping () -> Void) -> some View {
Button(action: action) {
Image(systemName: symbol).font(.system(size: 13)).foregroundColor(Color(hex: "#B0B5BE"))