diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 47b860c2f8d..ca80f07cad7 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -620,7 +620,7 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt) } timelib_time_dtor(ts); - if (gmt) { + if (!gmt) { timelib_time_offset_dtor(offset); }