|
Line 0
Link Here
|
|
|
1 |
--- ext/standard/datetime.c.orig Mon Mar 29 18:52:50 2004 |
| 2 |
+++ ext/standard/datetime.c Mon Mar 29 18:53:46 2004 |
| 3 |
@@ -19,7 +19,7 @@ |
| 4 |
*/ |
| 5 |
|
| 6 |
|
| 7 |
-/* $Id: datetime.c,v 1.96.2.12 2004/03/12 17:27:55 rasmus Exp $ */ |
| 8 |
+/* $Id: datetime.c,v 1.96.2.13 2004/03/26 19:29:31 rasmus Exp $ */ |
| 9 |
|
| 10 |
|
| 11 |
#include "php.h" |
| 12 |
@@ -194,12 +194,12 @@ |
| 13 |
val = (*arguments[0])->value.lval; |
| 14 |
/* |
| 15 |
We don't use 1 here to work around problems in some mktime implementations |
| 16 |
- when it comes to daylight savings time. Setting it to 2 and working back from |
| 17 |
+ when it comes to daylight savings time. Setting it to 4 and working back from |
| 18 |
there with the chgsecs offset makes us immune to these problems. |
| 19 |
See http://bugs.php.net/27533 for more info. |
| 20 |
*/ |
| 21 |
- if (val < 2) { |
| 22 |
- chgsecs += (2-val) * 60*60; val = 2; |
| 23 |
+ if (val < 4) { |
| 24 |
+ chgsecs += (4-val) * 60*60; val = 4; |
| 25 |
} |
| 26 |
ta->tm_hour = val; |
| 27 |
/* fall-through */ |