You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.6 KiB

  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/tests/date_default_timezone_set-1.phpt
  9. +++ b/ext/date/tests/date_default_timezone_set-1.phpt
  10. @@ -22,9 +22,6 @@ date.timezone=
  11. echo date(DATE_ISO8601, $date4), "\n";
  12. ?>
  13. --EXPECTF--
  14. -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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %sdate_default_timezone_set-1.php on line 3
  15. -
  16. -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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %sdate_default_timezone_set-1.php on line 4
  17. America/Indiana/Knox
  18. 2005-01-12T03:00:00-0500
  19. 2005-07-12T03:00:00-0500