@ -252,7 +252,7 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime)
t = timelib_time_ctor();
if (localtime) {
tzi = timelib_parse_tzfile(guess_timezone());
tzi = timelib_parse_tzfile(guess_timezone(TSRMLS_C));
if (! tzi) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot find any timezone setting");
timelib_time_dtor(t);