Use relative time format for Last Updated

This commit is contained in:
世界
2025-12-06 22:27:42 +08:00
parent dcc6cd189c
commit bd5e5f3a79
5 changed files with 12 additions and 6 deletions
@@ -61,7 +61,7 @@ public struct EditProfileView: View {
}
if profile.type == .remote {
Section("Status") {
FormTextItem("Last Updated", profile.lastUpdated!.myFormat)
FormTextItem("Last Updated", profile.lastUpdated!.relativeFormat)
}
}
@@ -230,7 +230,7 @@ public struct ProfileView: View {
Text(profile.name)
if profile.type == .remote {
Spacer(minLength: 4)
Text("Last Updated: \(profile.origin.lastUpdated!.myFormat)").font(.caption)
Text("Last Updated: \(profile.origin.lastUpdated!.relativeFormat)").font(.caption)
}
}
HStack {