From: Anatol Belski Date: Fri, 17 Nov 2017 21:51:10 +0000 (+0100) Subject: Remove useless condition X-Git-Tag: php-7.3.0alpha1~991 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95bfbeeea828b1074521779f15364895a22d54a1;p=php Remove useless condition --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 000199ca81..b5d094c83c 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1336,9 +1336,9 @@ PHPAPI int php_idate(char format, time_t ts, int localtime) offset->is_dst = t->dst; offset->abbr = timelib_malloc(9); /* GMT±xxxx\0 */ snprintf(offset->abbr, 9, "GMT%c%02d%02d", - !localtime ? ((offset->offset < 0) ? '-' : '+') : '+', - !localtime ? abs(offset->offset / 3600) : 0, - !localtime ? abs((offset->offset % 3600) / 60) : 0 ); + (offset->offset < 0) ? '-' : '+', + abs(offset->offset / 3600), + abs((offset->offset % 3600) / 60)); } else { offset = timelib_get_time_zone_info(t->sse, t->tz_info); }