question

Kinisoftware avatar image
Kinisoftware asked

AMAZON.DATE does not follow the ISO for first weeks in the year

Hi there! :)


I have a skill (Spanish) that uses the Amazon.Date slot type and it's been live for months now. The user can request some audio for a week like "tell me [whatever] for this week" (in Spanish > "dime [lo que sea] de esta semana").


I am getting the next request:

    "request": {
        "type": "IntentRequest",
        "requestId": "amzn1.echo-api.request.a15879d3-6949-434f-944d-cd2c59ce0b6b",
        "locale": "es-ES",
        "timestamp": "2021-01-13T07:21:38Z",
        "intent": {
            "name": "PlayTheNewsIntent",
            "confirmationStatus": "NONE",
            "slots": {
                "newsDate": {
                    "name": "newsDate",
                    "value": "2021-W2",
                    "confirmationStatus": "NONE",
                    "source": "USER",
                    "slotValue": {
                        "type": "Simple",
                        "value": "2021-W2"
                    }
                }
            }
        }
    }


I think this is a bug because the value is 2021-W2 instead of 2021-W02 as the ISO defines > https://en.wikipedia.org/wiki/ISO_8601#Week_dates


That behaviour affects to my skill so my audios are named as the expected dates (2021-W01, 2021-W02, and so on).


Could you review this, please? :)

Thanks in advance!

alexa skills kitalexaslots
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gaetano@Amazon avatar image
Gaetano@Amazon answered

Hello and thanks for posting.

Can you please share the skill-ID so I can have a better look at it?

Regards,
Gaetano

3 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you @Gaetano@Amazon!

This is the Skill ID > amzn1.ask.skill.fec37064-6f2c-4cab-87d4-07b5ba55e278


Let me know if I can help you more :)

0 Likes 0 ·

Hi,

I see that you also opened a contact-us case, I will keep you posted there and will update this thread accordingly.

Regards,
Gaetano

1 Like 1 ·

Perfect!

Thanks @Gaetano@Amazon

0 Likes 0 ·
Kinisoftware avatar image
Kinisoftware answered

Update:

Amazon internal team is developing a fix for this matter, however they are not able to provide a specific timeline for it to be deployed.

I will try to update this thread when the fix is live.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.