]> granicus.if.org Git - php/commitdiff
- MF51: This check is unnecessary, as it can only be set through the
authorDerick Rethans <derick@php.net>
Tue, 20 Dec 2005 19:59:47 +0000 (19:59 +0000)
committerDerick Rethans <derick@php.net>
Tue, 20 Dec 2005 19:59:47 +0000 (19:59 +0000)
  date_default_timezone_set() function which checks the value already.

ext/date/php_date.c

index 8645d42436eaf15d8692257fe592c3ad4d5b0678..4089ce54b8063ab1a5cebe362420589cfc42bbf6 100644 (file)
@@ -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 */