]> git.r.bdr.sh - rbdr/captura/blame - Captura/Data/CapturaRemoteFile+name.swift
Add URL parsing for record action
[rbdr/captura] / Captura / Data / CapturaRemoteFile+name.swift
CommitLineData
533cd932
RBR
1import Foundation
2extension CapturaRemoteFile {
3 var name: String {
4 let dateFormatter = DateFormatter()
5 dateFormatter.dateStyle = .medium
6 dateFormatter.timeStyle = .medium
7 dateFormatter.locale = Locale.current
8 if let timestamp {
9 return dateFormatter.string(from: timestamp).replacingOccurrences(of: ":", with: ".")
10 }
11 return "Unknown"
12 }
13}