Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kt-ios
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Виктор
kt-ios
Commits
ba6f880c
Commit
ba6f880c
authored
Nov 01, 2017
by
Olzhas Aldabergenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
date format for balance fixed
parent
1246f402
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
UserInterfaceState.xcuserstate
...cuserdata/neox.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Payment.swift
kt/Models/reports/Payment.swift
+11
-11
FeedPaymentCell.swift
kt/Views/FeedPaymentCell.swift
+1
-1
No files found.
kt.xcworkspace/xcuserdata/neox.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ba6f880c
No preview for this file type
kt/Models/reports/Payment.swift
View file @
ba6f880c
...
...
@@ -52,17 +52,17 @@ class Payment {
dateFormatterGet
.
dateFormat
=
"yyyy-MM-dd"
return
dateFormatterGet
.
stringFromDate
(
self
.
systemDate
!
)
// let components = systemDate.getComponents()
// let year = components.year
// let month = components.month
// let dateFormatter = NSDateFormatter()
// dateFormatter.locale = AppLocalization.language().locale
// // if #available(iOS 9.0, *) {
// return "\(dateFormatter.standaloneMonthSymbols[month - 1].localizedCapitalizedString) \(year)"
// // } else {
// // Fallback on earlier versions
// // }
}
func
ddMMMyyyy
()
->
String
?
{
guard
let
systemDate
=
systemDate
else
{
return
nil
}
let
dateFormatterGet
=
NSDateFormatter
()
dateFormatterGet
.
dateFormat
=
"dd MMM yyyy"
return
dateFormatterGet
.
stringFromDate
(
self
.
systemDate
!
)
}
}
kt/Views/FeedPaymentCell.swift
View file @
ba6f880c
...
...
@@ -22,7 +22,7 @@ class FeedPaymentCell: UITableViewCell {
didSet
{
if
let
currentPaymentIndex
=
currentPaymentIndex
{
let
firstPayment
=
(
payments
[
currentPaymentIndex
][
1
]
as!
[
Payment
])
.
first
!
lastPay
.
text
=
LocalizedString
(
"payment_last_format"
,
description
:
"Последний платеж: "
)
+
firstPayment
.
yyyyMMdd
()
!
lastPay
.
text
=
LocalizedString
(
"payment_last_format"
,
description
:
"Последний платеж: "
)
+
firstPayment
.
ddMMMyyyy
()
!
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment