rasmus          Fri Mar 26 14:29:31 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/standard       datetime.c 
  Log:
  The 2am offset was a bad choice as this hour doesn't necessarily exist
  on a DST switch.  So use 4am instead.  Fixes bug #27719
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/datetime.c?r1=1.96.2.12&r2=1.96.2.13&ty=u
Index: php-src/ext/standard/datetime.c
diff -u php-src/ext/standard/datetime.c:1.96.2.12 
php-src/ext/standard/datetime.c:1.96.2.13
--- php-src/ext/standard/datetime.c:1.96.2.12   Fri Mar 12 12:27:55 2004
+++ php-src/ext/standard/datetime.c     Fri Mar 26 14:29:31 2004
@@ -19,7 +19,7 @@
  */
 
 
-/* $Id: datetime.c,v 1.96.2.12 2004/03/12 17:27:55 rasmus Exp $ */
+/* $Id: datetime.c,v 1.96.2.13 2004/03/26 19:29:31 rasmus Exp $ */
 
 
 #include "php.h"
@@ -194,12 +194,12 @@
                val = (*arguments[0])->value.lval; 
                /* 
                   We don't use 1 here to work around problems in some mktime 
implementations
-                  when it comes to daylight savings time.  Setting it to 2 and 
working back from
+                  when it comes to daylight savings time.  Setting it to 4 and 
working back from
                   there with the chgsecs offset makes us immune to these problems.  
                   See http://bugs.php.net/27533 for more info.
                */
-               if (val < 2) { 
-                       chgsecs += (2-val) * 60*60; val = 2; 
+               if (val < 4) { 
+                       chgsecs += (4-val) * 60*60; val = 4; 
                } 
                ta->tm_hour = val; 
                /* fall-through */ 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to