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
2026-03-02 16:40:55 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d3068652355518e416517616b0b5cd17fa52446d
d3068652
1 parent
eb738733
small CouponItemModel fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
SwiftWarplyFramework/SwiftWarplyFramework/models/Coupon.swift
SwiftWarplyFramework/SwiftWarplyFramework/models/Coupon.swift
View file @
d306865
...
...
@@ -524,20 +524,16 @@ public class CouponItemModel {
"yyyy-MM-dd'T'HH:mm:ss"
// ISO 8601
]
var
created
Parsed
=
false
var
created
Result
=
""
for
format
in
createdFormats
{
dateFormatter2
.
dateFormat
=
format
if
let
date
=
dateFormatter2
.
date
(
from
:
createdString
??
""
)
{
dateFormatter2
.
dateFormat
=
"dd/MM/yyyy"
let
resultString
=
dateFormatter2
.
string
(
from
:
date
)
self
.
created
=
resultString
createdParsed
=
true
createdResult
=
dateFormatter2
.
string
(
from
:
date
)
break
}
}
if
!
createdParsed
{
self
.
created
=
""
}
self
.
created
=
createdResult
if
let
changes_dates
=
dictionary
[
"changes_dates"
]
as?
[
String
:
Any
]
{
let
redeemedString
=
changes_dates
[
"redeemed"
]
as?
String
?
??
""
...
...
Please
register
or
login
to post a comment