我正在努力争取我的回声技巧。我有时间,但它在错误的时区。如何将时间调整到时区?
这是我的代码:
var d = new Date();
var dateHour = d.getHours();
var dateMinutes = d.getMinutes();
var nonTime = dateHour + ":" + dateMinutes;
var dateTime = nonTime
var speechOutput = "This is a test " + today + ' ' + dateTime ;
this.emit(':tellWithCard', speechOutput, today); },
我发布的时间是10:16,这是我的日志显示的内容:
"outputSpeech": {
"type": "SSML",
"ssml": "<speak> This is a test September 5, 2017 3:16 </speak>"
答案 0 :(得分:1)