Commit ba6f880c by Olzhas Aldabergenov

date format for balance fixed

parent 1246f402
......@@ -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!)
}
}
......@@ -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()!
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment