Is there a way to specify timezoneOffset in CLU analyze_conversation request?

Daniel Fragoso 5 Reputation points
2023-08-10T06:00:40.4433333+00:00

Hello, i am using CLU services in Azure using the https://pypi.org/project/azure-ai-language-conversations/ this is my code in Python:

Unfortunately i am unable to specify the datetime timezone, so when i send in my text something like: hoy or today, i get tomorrow's date, since the service it is returning the UTC timezone but i need the America/Mexico_City one. Is there a way to specify this like in the LUIS API?

        result = client.analyze_conversation(
            task={
                "kind": "Conversation",
                "analysisInput": {
                    "conversationItem": {
                        "participantId": "1",
                        "id": "1",
                        "modality": "text",
                        "language": "es",
                        "text": text
                    },
                    "isLoggingEnabled": False
                },
                "parameters": {
                    "projectName": project_name,
                    "deploymentName": deployment_name,
                    "verbose": True,
                },
            }
        )

[I found this articles: https://learn.microsoft.com/en-us/azure/ai-services/luis/luis-concept-data-alteration?tabs=V2#change-time-zone-of-prebuilt-datetimev2-entity

and

https://learn.microsoft.com/en-us/rest/api/language/2022-10-01-preview/conversation-analysis/analyze-conversation?tabs=HTTP#luisparameters

But it seems like it is not applicable to this API or it is not clear.

Hope you can shed some light about this issue.

Thank you in advance.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
482 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,351 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,821 Reputation points
    2023-08-11T02:15:59.2833333+00:00

    @Daniel Fragoso Thanks for the question, The service does not currently support specifying the timezone for datetime values like the LUIS API does. you can try processing the datetime values in your client application before sending them to the service

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.