From c346be31a1291d7f0923f891b41f77cd578555f3 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 9 Feb 2004 04:05:56 +0000 Subject: [PATCH] MFH: Fixed bug #27175 (tzset() is not being called by PHP on startup). --- main/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.c b/main/main.c index 1a00965e44..9b53c530f6 100644 --- a/main/main.c +++ b/main/main.c @@ -1138,6 +1138,10 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod setlocale(LC_CTYPE, ""); #endif +#if HAVE_TZSET + tzset(); +#endif + #if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK)) /* start up winsock services */ if (WSAStartup(wVersionRequested, &wsaData) != 0) { -- 2.50.1