summaryrefslogtreecommitdiff
path: root/ext/interbase/interbase.c
diff options
context:
space:
mode:
authorJouni Ahto <jah@php.net>2000-05-04 13:43:06 +0000
committerJouni Ahto <jah@php.net>2000-05-04 13:43:06 +0000
commitaef06da0159efcc7119a8126fa8dbd683aa54d13 (patch)
treec6079d120c9e2ac2e1c69a2abdd3d5df459e4652 /ext/interbase/interbase.c
parent0b33ac76273ea57aa326389308a55c44b6315d89 (diff)
downloadphp-git-aef06da0159efcc7119a8126fa8dbd683aa54d13.tar.gz
Fix (?) #4314.
Diffstat (limited to 'ext/interbase/interbase.c')
-rw-r--r--ext/interbase/interbase.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c
index 3e6a90a679..ab50c8027e 100644
--- a/ext/interbase/interbase.c
+++ b/ext/interbase/interbase.c
@@ -1600,6 +1600,11 @@ static int _php_ibase_var_pval(pval *val, void *data, int type, int len, int sca
long timestamp = -1;
isc_decode_date((ISC_QUAD *) data, &t);
+ /*
+ XXX - Might have to remove this later - seems that isc_decode_date()
+ always sets tm_isdst to 0, sometimes incorrectly (InterBase 6 bug?)
+ */
+ t.tm_isdst = -1;
timestamp = mktime(&t);
#if HAVE_TM_ZONE
t.tm_zone = tzname[0];