]> granicus.if.org Git - php/commitdiff
Fix (?) #4314.
authorJouni Ahto <jah@php.net>
Thu, 4 May 2000 13:43:06 +0000 (13:43 +0000)
committerJouni Ahto <jah@php.net>
Thu, 4 May 2000 13:43:06 +0000 (13:43 +0000)
ext/interbase/interbase.c

index 3e6a90a6797cd420a8e6780dfb01cb3fccb3f49d..ab50c8027e347e60f4e230844e02feaba1ff167a 100644 (file)
@@ -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];