Lex AMAZON.DATE issue

别等时光非礼了梦想. 提交于 2019-12-11 07:28:18

问题


I am using lex built-in slot AMAZON.DATE. the problem is when user types 'today' it interprets time as local time. I think it is N.Virginia time where lex is hosted.

For example, when user types today (today is 1 Nov in Australia) but lex sends the value as 31/10.

Is there a way we can set a different time zone in the lex ?


回答1:


To set the time zone used to resolve dates so that it is relative to the user's time zone, use the x-amz-lex:time-zone request attribute. If you do not specify a time zone in the x-amz-lex:time-zone attribute, the default is America/New York.

Please have a look on documentation here



来源:https://stackoverflow.com/questions/47047507/lex-amazon-date-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!