File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,6 @@ class Synchronizer {
183
183
" BeaconEstimatedLocation " )
184
184
let sharedBeaconsUrl = searchpartydUrl. appendingPathComponent ( " SharedBeacons " )
185
185
186
- let dateFormatter = DateFormatter ( )
187
- dateFormatter. dateFormat = " yyyy-MM-dd HH:mm:ss ZZZZ "
188
186
189
187
let fileManager = FileManager . default
190
188
@@ -232,9 +230,6 @@ class Synchronizer {
232
230
}
233
231
234
232
235
- print ( beaconNames)
236
- print ( sharedBeaconMap)
237
-
238
233
let beaconEstimatedLocations = try fileManager. contentsOfDirectory (
239
234
at: beaconEstimatedLocationUrl, includingPropertiesForKeys: nil )
240
235
for subDir in beaconEstimatedLocations {
@@ -268,8 +263,7 @@ class Synchronizer {
268
263
latitude: NSNumber ( value: latitude as! Double )
269
264
)
270
265
271
- if let timestamp = dateFormatter. date (
272
- from: String ( describing: timestamp) )
266
+ if let timestamp = timestamp as? Date
273
267
{
274
268
beacon. timestamp = timestamp
275
269
}
@@ -295,7 +289,6 @@ class Synchronizer {
295
289
beacons [ id] = beacon
296
290
}
297
291
298
- print ( beacon)
299
292
}
300
293
}
301
294
}
You can’t perform that action at this time.
0 commit comments