我看到了非常奇怪的行为,DateTime有时会选择添加一天,而不是其他时间。// If you're running this after Jan 2012, use: new DateTime(date('Y-m-d', strtotime('2012-01-09')= new DateTime('2012-03-15');
if ($event_end_date > $month_end_date) {
❯ php -aPHP Warning: Uncaught Exception: DateTime::__to parse time string (abc) at position 0 (a): The timezone could not be found in the database in phpshell code on line 1
<