diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 4eabf3e58b4..32441fc83a2 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -319,6 +319,10 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int gm) } else { tname[0] = "???"; } + + if (tzname[1] != NULL) { + tname[1] = tzname[1]; + } #endif }