diff options
author | Derick Rethans <derick@php.net> | 2011-01-25 15:08:19 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2011-01-25 15:08:19 +0000 |
commit | ecbbe16a8bf878cf51d627e61a4ed6dec18579dd (patch) | |
tree | bb687d14ec71945c39a148fcc0d14489521dff29 | |
parent | cad4c3451065061649b2094b3af740533a90de0e (diff) | |
download | php-git-ecbbe16a8bf878cf51d627e61a4ed6dec18579dd.tar.gz |
- Let's keep this consistent in the whole file.
-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 1d6bbefe0c..a68077dc7a 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -897,7 +897,7 @@ static char* guess_timezone(const timelib_tzdb *tzdb TSRMLS_DC) } tzid = timelib_timezone_id_from_abbr("", (tzi.Bias + tzi.DaylightBias) * -60, 1); - if (tzid == NULL) { + if (! tzid) { tzid = "UTC"; } php_error_docref(NULL TSRMLS_CC, E_WARNING, DATE_TZ_ERRMSG "We selected '%s' for '%.1f/DST' instead", tzid, ((tzi.Bias + tzi.DaylightBias) / -60.0)); |