summaryrefslogtreecommitdiff
path: root/ext/date/lib/parse_tz.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2005-12-20 19:54:10 +0000
committerDerick Rethans <derick@php.net>2005-12-20 19:54:10 +0000
commitf0a0f89a2cf6b31068b7b30d60b0b9115384c4aa (patch)
tree71763821aebbed7f43fe5efac0575b31f2a29d94 /ext/date/lib/parse_tz.c
parent3782a4acf24ada6facde49ccbd590f5a20a0f664 (diff)
downloadphp-git-f0a0f89a2cf6b31068b7b30d60b0b9115384c4aa.tar.gz
- MFH: Fixed bug #35660 (AIX TZ variable format not understood, yields UTC
timezone).
Diffstat (limited to 'ext/date/lib/parse_tz.c')
-rw-r--r--ext/date/lib/parse_tz.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c
index f4eaee36b5..0980af07cc 100644
--- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c
@@ -238,6 +238,12 @@ timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int *count)
return timezonedb_idx_builtin;
}
+int timelib_timezone_id_is_valid(char *timezone, timelib_tzdb *tzdb)
+{
+ char *tzf;
+ return (seek_to_tz_position((char**) &tzf, timezone, tzdb));
+}
+
timelib_tzinfo *timelib_parse_tzfile(char *timezone, timelib_tzdb *tzdb)
{
char *tzf;