summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-02-12 01:28:12 +0000
committerfoobar <sniper@php.net>2004-02-12 01:28:12 +0000
commitb10ce1155c6fb0b96983cd0df4904b90699f90a8 (patch)
tree2715ccc89d44c1694fd198ce9cb72271385562f7
parent7258bff325e20681c833df2e1a8acee17783647c (diff)
downloadphp-git-b10ce1155c6fb0b96983cd0df4904b90699f90a8.tar.gz
- Fixed bug #23467 (Showing incorrect Time Zone)
# patch by scottmacvicar at ntlworld dot com
-rw-r--r--ext/standard/datetime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c
index 4eabf3e58b..32441fc83a 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
}