From 7e58c96022d807b0702ad68177def29e605501e5 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 28 Jun 2005 21:37:36 +0000 Subject: - Fixed bug #33415 and added test cases for #33414 and #33415. --- ext/date/lib/parse_tz.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/date/lib/parse_tz.c') 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; } -- cgit v1.2.1