Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -230,7 +230,7 @@ import SwiftEventBus | ... | @@ -230,7 +230,7 @@ import SwiftEventBus |
230 | let date1 = calendar.startOfDay(for: Date()) | 230 | let date1 = calendar.startOfDay(for: Date()) |
231 | if let date2 = dateFormatter.date(from: dfyCoupons[0]._date) { | 231 | if let date2 = dateFormatter.date(from: dfyCoupons[0]._date) { |
232 | let components = calendar.dateComponents([.day], from: date1, to: date2) | 232 | let components = calendar.dateComponents([.day], from: date1, to: date2) |
233 | - daysFromNow = (components.day) != nil ? String(components.day ?? 0) : "" | 233 | + daysFromNow = (components.day) != nil ? String((components.day ?? 0) + 1) : "" |
234 | } | 234 | } |
235 | 235 | ||
236 | activeCodesCountLabel.text = "Ενεργός κωδικός:" | 236 | activeCodesCountLabel.text = "Ενεργός κωδικός:" | ... | ... |
-
Please register or login to post a comment