cvs: /php3/functions interbase.c
| From: | Jouni Ahto | Date: | Thu, 04 May 2000 13:43:34 +0000 |
| Subject: | cvs: /php3/functions interbase.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18413@lists.php.net to get a copy of this message | ||
jah Thu May 4 06:43:34 2000 EDT
Modified files:
/php3/functions interbase.c
Log:
Fix (?) #4314.
Index: php3/functions/interbase.c
diff -u php3/functions/interbase.c:1.30 php3/functions/interbase.c:1.31
--- php3/functions/interbase.c:1.30 Thu May 4 05:29:34 2000
+++ php3/functions/interbase.c Thu May 4 06:43:33 2000
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.30 2000/05/04 12:29:34 jah Exp $ */
+/* $Id: interbase.c,v 1.31 2000/05/04 13:43:33 jah Exp $ */
/* TODO: Arrays, roles?
A lot... */
@@ -531,7 +531,7 @@
php3_printf(
"<table>"
- "<tr><td>Revision:</td><td>$Revision: 1.30
$</td></tr>\n"
+ "<tr><td>Revision:</td><td>$Revision: 1.31
$</td></tr>\n"
#ifdef COMPILE_DL
"<tr><td>Dynamic
module:</td><td>Yes</td></tr>\n"
#endif
@@ -1582,6 +1582,11 @@
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];