src/Utility/Time.php
public function hasDaylightSavingTime($timezone = null) {
		$timezone = $this->safeCreateDateTimeZone($timezone);
		// a date outside of DST
		$offset = $timezone->getOffset(new CakeTime('@' . mktime(0, 0, 0, 2, 1, date('Y'))));
		$offset = $offset / HOUR;

		// a date inside of DST
		$offset2 = $timezone->getOffset(new CakeTime('@' . mktime(0, 0, 0, 8, 1, date('Y'))));
		$offset2 = $offset2 / HOUR;

		return abs($offset2 - $offset) > 0;
	}
public function hasDaylightSavingTime($timezone = null) {
		$timezone = $this->safeCreateDateTimeZone($timezone);
		// a date outside of DST
		$offset = $timezone->getOffset(new CakeTime('@' . mktime(0, 0, 0, 2, 1, date('Y'))));
		$offset = $offset / HOUR;

		// a date inside of DST
		$offset2 = $timezone->getOffset(new CakeTime('@' . mktime(0, 0, 0, 8, 1, date('Y'))));
		$offset2 = $offset2 / HOUR;

		return abs($offset2 - $offset) > 0;
	}
public function hasDaylightSavingTime ( $ timezone = null ) { $ timezone = $ this -> safeCreateDateTimeZone ( $ timezone ) ; // a date outside of DST $ offset = $ timezone -> getOffset ( new CakeTime ( '@' . mktime ( 0 , 0 , 0 , 2 , 1 , date ( 'Y' ) ) ) ) ; $ offset = $ offset / HOUR ; // a date inside of DST $ offset2 = $ timezone -> getOffset ( new CakeTime ( '@' . mktime ( 0 , 0 , 0 , 8 , 1 , date ( 'Y' ) ) ) ) ; $ offset2 = $ offset2 / HOUR ; return abs ( $ offset2 - $ offset ) > 0 ; }
Detect if a timezone has a DST

@param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
@return bool
Detect if a timezone has a DST