We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a2659 commit 6d1faffCopy full SHA for 6d1faff
CoreLocationCLI/main.swift
@@ -101,7 +101,7 @@ class Delegate: NSObject, CLLocationManagerDelegate {
101
output = output.replacingOccurrences(of: "%speed", with: "\(Int(location.speed))")
102
output = output.replacingOccurrences(of: "%h_accuracy", with: "\(Int(location.horizontalAccuracy))")
103
output = output.replacingOccurrences(of: "%v_accuracy", with: "\(Int(location.verticalAccuracy))")
104
- output = output.replacingOccurrences(of: "%time", with: location.timestamp.description)
+ output = output.replacingOccurrences(of: "%time", with: locatedTime ?? location.timestamp.description)
105
106
// Placemark
107
output = output.replacingOccurrences(of: "%name", with: String(placemark?.name ?? ""))
0 commit comments