Skip to content

Commit

Permalink
Correct operator in Time::isPast()
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crowe committed Oct 30, 2013
1 parent ed5539f commit fdcc580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/Utility/Time.php
Expand Up @@ -496,7 +496,7 @@ public static function isFuture($dateString, $timezone = null) {
public static function isPast($dateString, $timezone = null) {
$timestamp = static::fromString($dateString, $timezone);
$dateTime = new \DateTime;
return $timestamp > $dateTime->getTimestamp();
return $timestamp < $dateTime->getTimestamp();
}

/**
Expand Down

0 comments on commit fdcc580

Please sign in to comment.