summaryrefslogtreecommitdiff
path: root/lang/php5/files/patch-ext::standard::datetime.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php5/files/patch-ext::standard::datetime.c')
-rw-r--r--lang/php5/files/patch-ext::standard::datetime.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/php5/files/patch-ext::standard::datetime.c b/lang/php5/files/patch-ext::standard::datetime.c
new file mode 100644
index 000000000000..24dc2963df17
--- /dev/null
+++ b/lang/php5/files/patch-ext::standard::datetime.c
@@ -0,0 +1,17 @@
+--- 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.