From f44f9d62061b1cd850fcbf5c49d618a14324cc9d Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 17 Feb 2018 11:27:15 +0100 Subject: [PATCH] Remove always true condition --- ext/date/php_date.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.50.1