if (open_date) {
open_date = get_date_from_string(open_date);
window.console && console.log(open_date);
window.console && console.log(cancel_until);
とはwindow.console && console.log
? コードに含まれている必要がありますか?このスクリプトを使用すると、IE (すべてのバージョン) では機能しません --> IE は、F12 キーを押した後にのみ JavaScript を実行します。