diff options
author | Derick Rethans <derick@php.net> | 2005-12-20 19:58:44 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2005-12-20 19:58:44 +0000 |
commit | 48336bcd7152a58dfefa74fc19ed7fb4be904a96 (patch) | |
tree | 9805ea2326f4c75e57d85ce08cc0d5639ab02196 | |
parent | f0a0f89a2cf6b31068b7b30d60b0b9115384c4aa (diff) | |
download | php-git-48336bcd7152a58dfefa74fc19ed7fb4be904a96.tar.gz |
- This check is unnecessary, as it can only be set through the
date_default_timezone_set() function which checks the value already.
-rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |