src/Utility/Time.php
protected static function _strftime($format, $date) {
		$format = strftime($format, $date);
		$encoding = Configure::read('App.encoding');

		if (!empty($encoding) && $encoding === 'UTF-8') {
			$valid = mb_check_encoding($format, $encoding);
			if (!$valid) {
				$format = utf8_encode($format);
			}
		}
		return $format;
	}
protected static function _strftime($format, $date) {
		$format = strftime($format, $date);
		$encoding = Configure::read('App.encoding');

		if (!empty($encoding) && $encoding === 'UTF-8') {
			$valid = mb_check_encoding($format, $encoding);
			if (!$valid) {
				$format = utf8_encode($format);
			}
		}
		return $format;
	}
protected static function _strftime ( $ format , $ date ) { $ format = strftime ( $ format , $ date ) ; $ encoding = Configure :: read ( 'App.encoding' ) ; if ( ! empty ( $ encoding ) && $ encoding === 'UTF-8' ) { $ valid = mb_check_encoding ( $ format , $ encoding ) ; if ( ! $ valid ) { $ format = utf8_encode ( $ format ) ; } } return $ format ; }
Multibyte wrapper for strftime.

Handles utf8_encoding the result of strftime when necessary.

@param string $format Format string.
@param int $date Timestamp to format.
@return string formatted string with correct encoding.
Multibyte wrapper for strftime .