mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
parent
7d90e9e492
commit
5a2f860544
2 changed files with 2 additions and 3 deletions
|
@ -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:)) ?? ""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue