cvs: php4 /ext/standard datetime.c
| From: | Stanislav Malyshev | Date: | Mon, 04 Mar 2002 11:11:25 +0000 |
| Subject: | cvs: php4 /ext/standard datetime.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9629@lists.php.net to get a copy of this message | ||
stas Mon Mar 4 06:11:25 2002 EDT
Modified files:
/php4/ext/standard datetime.c
Log:
cygwin fix
Index: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.82 php4/ext/standard/datetime.c:1.83
--- php4/ext/standard/datetime.c:1.82 Sun Jan 20 15:16:54 2002
+++ php4/ext/standard/datetime.c Mon Mar 4 06:11:25 2002
@@ -19,7 +19,7 @@
*/
-/* $Id: datetime.c,v 1.82 2002/01/20 20:16:54 mfischer Exp $ */
+/* $Id: datetime.c,v 1.83 2002/03/04 11:11:25 stas Exp $ */
#include "php.h"
@@ -184,8 +184,12 @@
** If correcting for daylight savings time, we set the adjustment to
** the value of timezone - 3600 seconds.
*/
+#ifdef __CYGWIN__
+ gmadjust = -(is_dst ? _timezone - 3600 : _timezone);
+#else
gmadjust = -(is_dst ? timezone - 3600 : timezone);
#endif
+#endif
seconds += gmadjust;
}
@@ -251,7 +255,11 @@
} else {
ta = php_localtime_r(&the_time, &tmbuf);
#if !HAVE_TM_GMTOFF
+#ifdef __CYGWIN__
+ tzone = _timezone;
+#else
tzone = timezone;
+#endif
tname[0] = tzname[0];
#endif
}