Merge pull request #832 from dogmatic69/cake-time-unused-var

adding the timezone as it was not being used
This commit is contained in:
José Lorenzo Rodríguez 2012-09-13 00:10:22 -07:00
commit 395e5bab58

View file

@ -477,7 +477,7 @@ class CakeTime {
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#testing-time
*/
public static function isThisMonth($dateString, $timezone = null) {
$date = self::fromString($dateString);
$date = self::fromString($dateString, $timezone);
return date('m Y', $date) == date('m Y', time());
}