From 9675190c46fdd28e4ce6e24ff2f84581ed7d88e0 Mon Sep 17 00:00:00 2001 From: Kai Schroeder Date: Sun, 9 Feb 2003 12:28:31 +0000 Subject: [PATCH] MSVC's mktime() does not examine the existence of a daylight-saving-time zone --- ext/standard/datetime.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 13b92322f0..39a7e4c96b 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -123,7 +123,15 @@ void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gm) */ 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: -- 2.40.0