From: Ilia Alshanetsky Date: Mon, 9 Feb 2004 04:05:56 +0000 (+0000) Subject: MFH: Fixed bug #27175 (tzset() is not being called by PHP on startup). X-Git-Tag: php-4.3.5RC3~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c346be31a1291d7f0923f891b41f77cd578555f3;p=php MFH: Fixed bug #27175 (tzset() is not being called by PHP on startup). --- 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) {