info command now outputs ISO date format

fixes #322
This commit is contained in:
Ross Goldberg 2021-02-28 09:01:44 -05:00
parent 7d90e9e492
commit 5a2f860544
2 changed files with 2 additions and 3 deletions

View file

@ -50,8 +50,7 @@ struct AppInfoFormatter {
serverDateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
let humanDateFormatter = DateFormatter()
humanDateFormatter.timeStyle = .none
humanDateFormatter.dateStyle = .medium
humanDateFormatter.dateFormat = "yyyy-MM-dd"
return serverDateFormatter.date(from: serverDate).flatMap(humanDateFormatter.string(from:)) ?? ""
}
}

View file

@ -28,7 +28,7 @@ class InfoCommandSpec: QuickSpec {
let expectedOutput = """
Awesome App 1.0 [2.0]
By: Awesome Dev
Released: Jan 7, 2019
Released: 2019-01-07
Minimum OS: 10.14
Size: 1 KB
From: https://awesome.app