@@ -134,6 +134,7 @@ public struct DiagnoseCommand: AsyncParsableCommand {
134
134
135
135
for crashInfo in crashInfos {
136
136
let dateFormatter = DateFormatter ( )
137
+ dateFormatter. timeZone = NSTimeZone . local
137
138
dateFormatter. dateStyle = . none
138
139
dateFormatter. timeStyle = . medium
139
140
let progressMessagePrefix = " Reducing Swift compiler crash at \( dateFormatter. string ( from: crashInfo. date) ) "
@@ -304,7 +305,9 @@ public struct DiagnoseCommand: AsyncParsableCommand {
304
305
305
306
progressBar = PercentProgressAnimation ( stream: stderrStream, header: " Diagnosing sourcekit-lsp issues " )
306
307
307
- let date = ISO8601DateFormatter ( ) . string ( from: Date ( ) ) . replacingOccurrences ( of: " : " , with: " - " )
308
+ let dateFormatter = ISO8601DateFormatter ( )
309
+ dateFormatter. timeZone = NSTimeZone . local
310
+ let date = dateFormatter. string ( from: Date ( ) ) . replacingOccurrences ( of: " : " , with: " - " )
308
311
let bundlePath = FileManager . default. temporaryDirectory
309
312
. appendingPathComponent ( " sourcekitd-reproducer- \( date) " )
310
313
try FileManager . default. createDirectory ( at: bundlePath, withIntermediateDirectories: true )
@@ -330,9 +333,9 @@ public struct DiagnoseCommand: AsyncParsableCommand {
330
333
print (
331
334
"""
332
335
333
- Bundle created.
334
- When filing an issue at https://github.com/apple/sourcekit-lsp/issues/new,
335
- please attach the bundle located at
336
+ Bundle created.
337
+ When filing an issue at https://github.com/apple/sourcekit-lsp/issues/new,
338
+ please attach the bundle located at
336
339
\( bundlePath. path)
337
340
"""
338
341
)
0 commit comments