From: Derick Rethans Date: Tue, 20 Dec 2005 19:58:44 +0000 (+0000) Subject: - This check is unnecessary, as it can only be set through the X-Git-Tag: php-5.1.2RC1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48336bcd7152a58dfefa74fc19ed7fb4be904a96;p=php - 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 690ec5a869..a4cf8202ca 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -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 */