# 1.24.0 -> 1.24.1

## Configuring Identity change

The `identity.setIdentity`API returns a callback with success or failure to notifiy host app if the identity was set successfully or not.

```swift
class InitializeSDK {
    init(completion: @escaping (Swift.Result<Void, Error>) -> Void) {
        try! initialize(
            Directories(root: sdkRootDirectory),
            configRegion: .CAN,
            logLevel: .debug,
            tokenSignerFactory: { self.appTokenSigner }
        )
        
        // New Implementation
        let identity = Identity(apiKey: apiKey, externalReferenceID: uid)
        identity.setIdentity { result in
            switch result {
            case .success:
                completion(.success(()))
            case .failure(let error):
                completion(.failure(error))
            }
        }
    }
}
```

## Date Format change

Starting 1.24.1, the SDK uses the `yyyy-MM-dd` (standard calendar year) date format to compos custom dates range for Portal APIs.

* SDK originally used `YYYY`, which may have caused issues where dates at the end of December or the beginning of January were interpreted as belonging to the wrong year (e.g., December 31, 2023, might be treated as part of **2024** in some cases). Switching to `yyyy` ensures that the date format consistently reflects the actual calendar year without unexpected shifts.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.ims.tech/migration-notes/ios/older-releases/1.24.0-greater-than-1.24.1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
