Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-09-13 17:18:17 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abc37dac83373f50b6677527906d0dd7b8943436
abc37dac
1 parent
547ce2e1
fix active coupons expiration days
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
abc37da
...
...
@@ -230,7 +230,7 @@ import SwiftEventBus
let
date1
=
calendar
.
startOfDay
(
for
:
Date
())
if
let
date2
=
dateFormatter
.
date
(
from
:
dfyCoupons
[
0
]
.
_date
)
{
let
components
=
calendar
.
dateComponents
([
.
day
],
from
:
date1
,
to
:
date2
)
daysFromNow
=
(
components
.
day
)
!=
nil
?
String
(
components
.
day
??
0
)
:
""
daysFromNow
=
(
components
.
day
)
!=
nil
?
String
(
(
components
.
day
??
0
)
+
1
)
:
""
}
activeCodesCountLabel
.
text
=
"Ενεργός κωδικός:"
...
...
Please
register
or
login
to post a comment