adding the timezone as it was not being used

This commit is contained in:
dogmatic69 2012-09-13 06:45:44 +01:00
parent 25b447149d
commit cf361040a4

View file

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