Skip to content

Commit

Permalink
adding the timezone as it was not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Sep 13, 2012
1 parent 25b4471 commit cf36104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/CakeTime.php
Expand Up @@ -477,7 +477,7 @@ public static function isThisWeek($dateString, $timezone = null) {
* @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());
}

Expand Down

0 comments on commit cf36104

Please sign in to comment.