mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-24 04:05:16 +08:00
Refactor date formatting from String (#1229)
* refactor date formatting from String * undo new file
This commit is contained in:
@@ -45,8 +45,7 @@ extension RepoPullRequestPagesQuery: RepositoryQuery {
|
||||
}
|
||||
|
||||
func createSummaryModel(_ node: RepositoryIssueSummaryType, containerWidth: CGFloat) -> RepositoryIssueSummaryModel? {
|
||||
guard let date = GithubAPIDateFormatter().date(from: node.repoEventFields.createdAt)
|
||||
else { return nil }
|
||||
guard let date = node.repoEventFields.createdAt.githubDate else { return nil }
|
||||
|
||||
let attributes = [
|
||||
NSAttributedStringKey.font: Styles.Fonts.body,
|
||||
|
||||
Reference in New Issue
Block a user