1
我使用觸發器日曆模塊,但是在iOS中調用以下代碼時,它只是停止應用程序,沒有任何反應 - Android上不會發生該問題,但日期似乎不是在日曆中正確輸入:iOS上的日曆崩潰
var start = new Date(this.booking.startdatetime());
var end = new Date(this.booking.enddatetime());
forge.calendar.addEvent({
title:"title",
description:"description",
start:start,
end:end,
allday:false
}, function() {
alert("Event added!");
}, function (content) {
alert("error");
}
);
的回調從來沒有達到過,也想抓住任何異常,不給結果。然而,它只是通過new Date()
作爲開始/結束它的工作完美。
我自己的開始/日期變量的格式爲:
Sun Feb 03 2013 22:00:00 GMT+0100 (Mitteleuropäische Zeit)
它看起來一樣new Date()
,總之我想這是哪裏出了問題?