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

DateTimeZone throws warnings: Unknown or bad timezone ()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Resolved
    • Icon: Minor Minor
    • 3.2.10-RC1, 3.3.1-RC1
    • 3.1.9
    • Other

      I am running NewRelic on my servers and quite often I get warnings notifications when i post an article.

      Error message
      E_WARNING: DateTimeZone::__construct(): Unknown or bad timezone ()
       
      Sample stack trace
      ...one::__construct called at /var/www/osb-dedicated-kalilinux/web/phpbb/
      user.php (192)
      in phpbb\user::setup called at /var/www/osb-dedicated-kalilinux/web/posting.php (239)
      

      Screen shots are attached.

      I went and check what's on line 192 from user.php and try/catch it used for debugging or catching exceptions, however, not for assigning values or switching elements.

      I've already created a patch for this and currently is running on my live server. (if needed i can provide the URL to the website)

            Marc Marc
            obokar obokar [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: