k.schroeder             Sun Feb  9 07:28:31 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/standard  datetime.c 
  Log:
  MSVC's mktime() does not examine the existence of a daylight-saving-time zone
  
Index: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.96.2.4 php4/ext/standard/datetime.c:1.96.2.5
--- php4/ext/standard/datetime.c:1.96.2.4       Mon Feb  3 17:48:35 2003
+++ php4/ext/standard/datetime.c        Sun Feb  9 07:28:31 2003
@@ -19,7 +19,7 @@
  */
 
 
-/* $Id: datetime.c,v 1.96.2.4 2003/02/03 22:48:35 iliaa Exp $ */
+/* $Id: datetime.c,v 1.96.2.5 2003/02/09 12:28:31 k.schroeder Exp $ */
 
 
 #include "php.h"
@@ -123,7 +123,15 @@
        */
        switch(arg_count) {
        case 7: /* daylight saving time flag */
+#ifdef PHP_WIN32
+               if (daylight > 0) {
+                       ta->tm_isdst = is_dst = Z_LVAL_PP(arguments[6]);
+               } else {
+                       ta->tm_isdst = is_dst = 0;
+               }
+#else
                ta->tm_isdst = is_dst = Z_LVAL_PP(arguments[6]);
+#endif
                /* fall-through */
        case 6: /* year */
                /* special case: 



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

Reply via email to