Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10512

Test failure when no default timezone is set in php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.11-RC1
    • 3.0.9
    • None
    • None

      1) phpbb_wrapper_gmgetdate_test::test_gmgetdate
      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 'America/New_York' for 'EST/-5.0/no DST' instead
       
      /home/phpdev/test-phpbb/phpBB/includes/functions.php:286
      /home/phpdev/test-phpbb/tests/wrapper/gmgetdate_test.php:36
      /home/phpdev/test-phpbb/tests/wrapper/gmgetdate_test.php:16
      /home/pie/apps/git-phpunit-bundle/phpunit.php:44
      

      Since we support running phpbb without a default timezone being set, a more sensible behavior here would be to skip just that one assertion if there is no default timezone.

            bantu Andreas Fischer [X] (Inactive)
            Oleg Oleg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: