興味深い問題があります。
次のコードはエラーを生成します。
$startDate = new DateTime();
// print_r($startDate);
$i = strpos($startDate->date,' ');
$this->startByTime = substr($startDate->date,0,$i).'T'.substr($startDate->date,$i+1).'.000Z';
Notice: Undefined property: DateTime::$date in C:\xampp\htdocs\hpace\buildschedule.php on line..
そして、日付プロパティは未定義のようです。このすべての$this->strartByTime = 'T000Z'
終わりのように。
ここで、print_r ステートメントのコメントを外すと、すべて正常に動作します。誰でも私にこれを説明できますか?