Permalink
Browse files

adding the timezone as it was not being used

  • Loading branch information...
dogmatic69 committed Sep 13, 2012
1 parent 25b4471 commit cf361040a4d6904488bd4338d66fa8be53161a1d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/CakeTime.php
@@ -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());
}

0 comments on commit cf36104

Please sign in to comment.