summaryrefslogtreecommitdiffstats
path: root/lang/php53/files/patch-ext::standard::datetime.c
blob: 24dc2963df17bbc852755eddedef64c719560589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.
OpenPOWER on IntegriCloud