Skip to content

Commit 6d1faff

Browse files
committed
Also localize in string output
1 parent 41a2659 commit 6d1faff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreLocationCLI/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Delegate: NSObject, CLLocationManagerDelegate {
101101
output = output.replacingOccurrences(of: "%speed", with: "\(Int(location.speed))")
102102
output = output.replacingOccurrences(of: "%h_accuracy", with: "\(Int(location.horizontalAccuracy))")
103103
output = output.replacingOccurrences(of: "%v_accuracy", with: "\(Int(location.verticalAccuracy))")
104-
output = output.replacingOccurrences(of: "%time", with: location.timestamp.description)
104+
output = output.replacingOccurrences(of: "%time", with: locatedTime ?? location.timestamp.description)
105105

106106
// Placemark
107107
output = output.replacingOccurrences(of: "%name", with: String(placemark?.name ?? ""))

0 commit comments

Comments
 (0)