From: Derick Rethans Date: Tue, 20 Dec 2005 19:59:47 +0000 (+0000) Subject: - MF51: This check is unnecessary, as it can only be set through the X-Git-Tag: RELEASE_1_0_4~300 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=836978a50974e795a57a933deb41fa9b52bc8c5b;p=php - MF51: This check is unnecessary, as it can only be set through the date_default_timezone_set() function which checks the value already. --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 8645d42436..4089ce54b8 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -309,7 +309,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 */