1 Author: Sean Finney <seanius@debian.org>
2 Forwarded: no (upstream doesn't want it)
3 Description: Silence warnings about using the default system timezone info
4 In vanilla upstream php, this is considered an error (i.e. the user must
5 set the timezone explicitly), though with our use of the system timezonedb
6 patch, we actually feel quite comfortable using the default timezone info.
7 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571762
8 --- a/ext/date/php_date.c
9 +++ b/ext/date/php_date.c
10 @@ -878,7 +878,7 @@ static char* guess_timezone(const timeli
14 - php_error_docref(NULL TSRMLS_CC, E_WARNING, DATE_TZ_ERRMSG "We selected '%s' for '%s/%.1f/%s' instead", tzid, ta ? ta->tm_zone : "Unknown", ta ? (float) (ta->tm_gmtoff / 3600) : 0, ta ? (ta->tm_isdst ? "DST" : "no DST") : "Unknown");
15 + // php_error_docref(NULL TSRMLS_CC, E_WARNING, DATE_TZ_ERRMSG "We selected '%s' for '%s/%.1f/%s' instead", tzid, ta ? ta->tm_zone : "Unknown", ta ? (float) (ta->tm_gmtoff / 3600) : 0, ta ? (ta->tm_isdst ? "DST" : "no DST") : "Unknown");
19 --- a/ext/date/tests/date_default_timezone_get-1.phpt
23 -date_default_timezone_get() function [1]
29 - echo date_default_timezone_get(), "\n";
30 - echo date('e'), "\n";
33 -Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-1.php on line 3
36 -Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-1.php on line 4
38 --- a/ext/date/tests/date_default_timezone_get-2.phpt
42 -date_default_timezone_get() function [2]
48 - echo date_default_timezone_get(), "\n";
51 -Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_get-2.php on line 3
53 --- a/ext/date/tests/date_default_timezone_set-1.phpt
54 +++ b/ext/date/tests/date_default_timezone_set-1.phpt
55 @@ -18,9 +18,6 @@ date.timezone=
56 echo date(DATE_ISO8601, $date4), "\n";
59 -Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_set-1.php on line 3
61 -Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in %sdate_default_timezone_set-1.php on line 4
63 2005-01-12T03:00:00-0500
64 2005-07-12T03:00:00-0500