mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
- This check is unnecessary, as it can only be set through the
date_default_timezone_set() function which checks the value already.
This commit is contained in:
+1
-1
@@ -303,7 +303,7 @@ static char* guess_timezone(timelib_tzdb *tzdb TSRMLS_DC)
|
||||
char *env;
|
||||
|
||||
/* Checking configure timezone */
|
||||
if (DATEG(timezone) && (strlen(DATEG(timezone)) > 0) && timelib_timezone_id_is_valid(DATEG(timezone), tzdb)) {
|
||||
if (DATEG(timezone) && (strlen(DATEG(timezone)) > 0)) {
|
||||
return DATEG(timezone);
|
||||
}
|
||||
/* Check environment variable */
|
||||
|
||||
Reference in New Issue
Block a user