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

ext/date/php_date.c

index 690ec5a8693b7f5942295c087cb6467ffa6633e1..a4cf8202ca6bc7526daf1d9d14ada10a7eeda3c0 100644 (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 */