From: Anatol Belski Date: Sat, 17 Feb 2018 10:27:15 +0000 (+0100) Subject: Remove always true condition X-Git-Tag: php-7.3.0alpha1~387 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f44f9d62061b1cd850fcbf5c49d618a14324cc9d;p=php Remove always true condition --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 5552c02730..6bb1c7d5cc 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1130,9 +1130,9 @@ static zend_string *date_format(char *format, size_t format_len, timelib_time *t offset->is_dst = 0; 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); }