php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73765 Europe/Budapest gives Error
Submitted: 2016-12-16 21:23 UTC Modified: 2016-12-18 20:58 UTC
From: chris at isfett dot com Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: 7.0.14 OS: Ubuntu 16.04 LTS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at isfett dot com
New email:
PHP Version: OS:

 

 [2016-12-16 21:23 UTC] chris at isfett dot com
Description:
------------
---
From manual page: http://www.php.net/timezones.europe
---

DateTimeZone::__construct(): Unknown or bad timezone (Europe/Budapest)



Test script:
---------------
new DateTime('now', new DateTimeZone('Europe/Budapest'));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-16 23:34 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-12-16 23:34 UTC] cmb@php.net
I can't reproduce that, see <https://3v4l.org/IC97C>.

Please specify the PHP version and the timezone db version you're
using.
 [2016-12-17 10:32 UTC] chris at isfett dot com
-Status: Feedback +Status: Assigned
 [2016-12-17 10:32 UTC] chris at isfett dot com
I have Php 7.05 installed. How can i see my timezone db? Thought it is built-in php.
 [2016-12-17 14:44 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2016-12-17 14:44 UTC] cmb@php.net
I just tested the supplied reproduce script on Ubuntu 16.04.3, and
I still can't reproduce the error. Details:

$ php -v
PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies
$ php -i | grep "Timezone Database"
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
 [2016-12-18 08:31 UTC] chris at isfett dot com
-Status: Feedback +Status: Assigned
 [2016-12-18 08:31 UTC] chris at isfett dot com
$ php -v
PHP 7.0.5 (cli) (built: Apr 22 2016 23:52:23) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans

php -i |grep "Timezone Database"
"Olson" Timezone Database Version => 2016.3
Timezone Database => internal
 [2016-12-18 10:32 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2016-12-18 10:32 UTC] cmb@php.net
> "Olson" Timezone Database Version => 2016.3

Well, then please try with the latest timezonedb or, preferably,
with PHP 7.0.14.
 [2016-12-18 20:58 UTC] chris at isfett dot com
-Status: Feedback +Status: Closed
 [2016-12-18 20:58 UTC] chris at isfett dot com
"Olson" Timezone Database Version 2016.10 solved this for me. Closed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC