1

A lex intent have a slot with type AMAZON.DATE

If I enter the date like 11.02.2019 then it is processing the date in mm.dd.yyyy format, but my customers in Europe region, it supposed to process the date in dd.mm.yyyy format.

I am using Javascript AWS SDK and in the PostText call setting "x-amz-lex:time-zone": "Europe/Dublin" in requestAttributes, but LEX doesn't seem to use this.

var params = {
    botName: 'mybot',
    botAlias: 'dev',
    userId: 'testuser-1',
    inputText: 'check 11.02.2019',
    requestAttributes: {
        "x-amz-lex:time-zone": "Europe/Dublin"
    }
};

let res = await new AWS.LexRuntime().postText(params).promise();
sepp2k
  • 363,768
  • 54
  • 674
  • 675
yottabrain
  • 2,387
  • 5
  • 23
  • 37

0 Answers0