mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
adding the timezone as it was not being used
This commit is contained in:
parent
25b447149d
commit
cf361040a4
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue