public static function PHPExcel_Shared_TimeZone::_validateTimeZone in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/TimeZone.php \PHPExcel_Shared_TimeZone::_validateTimeZone()
* Validate a Timezone name * *
Parameters
string $timezone Time zone (e.g. 'Europe/London'): * @return boolean Success or failure
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ TimeZone.php, line 53
Class
- PHPExcel_Shared_TimeZone
- PHPExcel_Shared_TimeZone
Code
public static function _validateTimeZone($timezone) {
if (in_array($timezone, DateTimeZone::listIdentifiers())) {
return TRUE;
}
return FALSE;
}