Removed unnecessary formating when comparing DateTime objects
This commit is contained in:
parent
37a0c271f6
commit
60b4eb5c8a
1 changed files with 2 additions and 3 deletions
|
@ -912,9 +912,8 @@ SQL;
|
||||||
* (NOTE: We cannot call getTimestamp() to compare the dates because of
|
* (NOTE: We cannot call getTimestamp() to compare the dates because of
|
||||||
* a PHP 5.3.3 bug with DatePeriod objects - See CC-5159 for more details)
|
* a PHP 5.3.3 bug with DatePeriod objects - See CC-5159 for more details)
|
||||||
*/
|
*/
|
||||||
if ($utcStartDateTime->format("Y-m-d H:i:s") <= $populateUntil->format("Y-m-d H:i:s") &&
|
if ($utcStartDateTime <= $populateUntil &&
|
||||||
( is_null($utcLastShowDateTime) ||
|
( is_null($utcLastShowDateTime) || $utcStartDateTime < $utcLastShowDateTime) ) {
|
||||||
$utcStartDateTime->format("Y-m-d H:i:s") < $utcLastShowDateTime->format("Y-m-d H:i:s")) ) {
|
|
||||||
|
|
||||||
$lastCreatedShow = clone $utcStartDateTime;
|
$lastCreatedShow = clone $utcStartDateTime;
|
||||||
/* There may not always be an instance when editing a show
|
/* There may not always be an instance when editing a show
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue