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
@@ -348,7 +348,7 @@ public struct ProfileCard: View {
Image(systemName: "clock.fill")
.font(.system(size: 12))
.foregroundColor(.secondary)
Text(lastUpdated.myFormat)
Text(lastUpdated.relativeFormat)
.font(.caption)
.foregroundColor(.primary)
}
@@ -892,7 +892,7 @@ private struct ProfilePickerRow: View {
Image(systemName: "clock.fill")
.font(.system(size: 12))
.foregroundStyle(.secondary)
Text(lastUpdated.myFormat)
Text(lastUpdated.relativeFormat)
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -947,7 +947,7 @@ private struct ProfilePickerRow: View {
Image(systemName: "clock.fill")
.font(.system(size: 12))
.foregroundStyle(.secondary)
Text(lastUpdated.myFormat)
Text(lastUpdated.relativeFormat)
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -1155,7 +1155,7 @@ private struct ProfilePickerRow: View {
Image(systemName: "clock.fill")
.font(.system(size: 12))
.foregroundStyle(.secondary)
Text(lastUpdated.myFormat)
Text(lastUpdated.relativeFormat)
.font(.caption)
.foregroundStyle(.secondary)
}