Skip to content

Commit

Permalink
handle nils for profileIngestionDate
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Apr 28, 2023
1 parent db9fb5f commit 502631b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gnes/NetworkExtensionLogic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func getAllNetworkExtensions() -> [String:Any] {
payloadInfo["profileUUID"] = config.payloadInfo.profileUUID
payloadInfo["profileIdentifier"] = config.payloadInfo.profileIdentifier
payloadInfo["isSetAside"] = (config.payloadInfo.isSetAside != 0)
payloadInfo["profileIngestionDate"] = (config.payloadInfo.profileIngestionDate.toString(dateFormat: "yyyy-MM-dd HH:mm:ss Z"))
if config.payloadInfo.profileIngestionDate != nil {
payloadInfo["profileIngestionDate"] = (config.payloadInfo.profileIngestionDate.toString(dateFormat: "yyyy-MM-dd HH:mm:ss Z"))
}
payloadInfo["systemVersion"] = config.payloadInfo.systemVersion
if config.payloadInfo.profileSource == 2 {
payloadInfo["profileSource"] = "mdm"
Expand Down

0 comments on commit 502631b

Please sign in to comment.