ports/lang/php53/files/patch-ext::standard::datetime.c
Edwin Groothuis 2d4fcfa223 [Maintainer Update] Port: lang/php5
Update to 5.0.0a2-alexdupre snapshot (and fix 5.0.0a1 memory leak).
	Add DB4 extension.
	Correctly use USE_MYSQL/USE_OPENSSL/USE_OPENLDAP.

PR:		ports/56979
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
2003-09-24 08:49:20 +00:00

17 lines
444 B
C

--- ext/standard/datetime.c.orig Tue Aug 26 11:06:04 2003
+++ ext/standard/datetime.c Tue Aug 26 11:07:27 2003
@@ -116,7 +116,13 @@
/* Let DST be unknown. mktime() should compute the right value
** and behave correctly. Unless the user overrides this.
*/
- ta->tm_isdst = -1;
+ if (gm) {
+ ta->tm_isdst = 0;
+ is_dst = 0;
+ } else {
+ ta->tm_isdst = -1;
+ is_dst = -1;
+ }
/*
** Now change date values with supplied parameters.