diff --git a/MasKit/Formatters/AppInfoFormatter.swift b/MasKit/Formatters/AppInfoFormatter.swift index 58409fb..26040b9 100644 --- a/MasKit/Formatters/AppInfoFormatter.swift +++ b/MasKit/Formatters/AppInfoFormatter.swift @@ -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:)) ?? "" } } diff --git a/MasKitTests/Commands/InfoCommandSpec.swift b/MasKitTests/Commands/InfoCommandSpec.swift index ea98095..8806bb6 100644 --- a/MasKitTests/Commands/InfoCommandSpec.swift +++ b/MasKitTests/Commands/InfoCommandSpec.swift @@ -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