freebsd-ports/lang/php4/files/patch-ext::standard::datetime.c
Norikatsu Shigemura d9d0a77695 Update to 4.3.3 final release.
PR:		ports/55990
Submitted by:	Alex Dupre <sysadmin@alexdupre.com> (maintainer)
2003-08-26 15:58:48 +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.