derick Wed Oct 5 07:06:57 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/date php_date.c
Log:
- Implement correct Windows timezone guessing.
Thanks for you work, Derick!
However after checking the correct TZ, you forgot to return it :)
Something like the above will work:
Index: php_date.c
===================================================================
RCS file: /repository/php-src/ext/date/php_date.c,v
retrieving revision 1.59
diff -u -r1.59 php_date.c
--- php_date.c 7 Oct 2005 13:33:13 -0000 1.59
+++ php_date.c 7 Oct 2005 19:43:54 -0000
@@ -357,8 +357,8 @@
}
php_error_docref(NULL TSRMLS_CC, E_STRICT, "It is not safe to rely on
the systems timezone settings, please use the date.timezone setting, the TZ
environment variable or the date_default_timezone_set() function. We use
'%s' for '%.1f/DST' instead.", tzid, (float) ((tzi.Bias + tzi.DaylightBias)
/ -60));
break;
-
}
+ return tzid;
}
#endif
/* Fallback to UTC */
Nuno
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php