summaryrefslogtreecommitdiff
path: root/ext/date/lib/parse_tz.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2005-06-28 21:37:36 +0000
committerDerick Rethans <derick@php.net>2005-06-28 21:37:36 +0000
commit7e58c96022d807b0702ad68177def29e605501e5 (patch)
tree615aec71edcfcc23eaeb6c47961bde29c99e0997 /ext/date/lib/parse_tz.c
parentfaa3fd4ae06f461b3a6519d1b4f69ddfac7c65af (diff)
downloadphp-git-7e58c96022d807b0702ad68177def29e605501e5.tar.gz
- Fixed bug #33415 and added test cases for #33414 and #33415.
Diffstat (limited to 'ext/date/lib/parse_tz.c')
-rw-r--r--ext/date/lib/parse_tz.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c
index 69bf196393..11df4d92ae 100644
--- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c
@@ -241,6 +241,9 @@ static ttinfo* fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib
uint32_t i;
if (!tz->timecnt || !tz->trans) {
+ if (tz->typecnt == 1) {
+ return &(tz->type[0]);
+ }
return NULL;
}