1
0
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:
Derick Rethans
2005-12-20 19:58:44 +00:00
parent f0a0f89a2c
commit 48336bcd71
+1 -1
View File
@@ -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 */