From: Derick Rethans Date: Tue, 25 Jan 2011 15:08:19 +0000 (+0000) Subject: - Let's keep this consistent in the whole file. X-Git-Tag: php-5.3.6RC1~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecbbe16a8bf878cf51d627e61a4ed6dec18579dd;p=php - Let's keep this consistent in the whole file. --- 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));