Debian Bug report logs -
#628079
php5-common: Wrong timezone selected
Reported by: Craig Small <csmall@debian.org>
Date: Thu, 26 May 2011 23:18:01 UTC
Severity: minor
Found in versions php5/5.3.6-11, php5/5.3.9-5, php5/5.4.4-14+deb7u4
Fixed in version 5.6.26+dfsg-1+rm
Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#628079; Package php5-common.
(Thu, 26 May 2011 23:18:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Craig Small <csmall@debian.org>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Thu, 26 May 2011 23:18:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.3.6-11
Severity: normal
Both the apache module and cli PHP show my timezone as
Antartica/Macquarie. I'm not a penguin and don't live there.
The rest of the system thinks my timezone is Australia/NSW which is
correct.
I cannot find anywhere where it is set as it is commented out in the
php.ini files. If I set the timezone in my php.ini file then everything
works correctly, but why can't php just use the system timezone like the
rest of the computer does ok?
date
date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone Antarctica/Macquarie
Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-common depends on:
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii sed 4.2.1-9 The GNU sed stream editor
Versions of packages php5-common recommends:
ii php5-suhosin 0.9.32.1-1 advanced protection module for php
php5-common suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, csmall@debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#628079; Package php5-common.
(Tue, 31 Jan 2012 12:33:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to csmall@debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 31 Jan 2012 12:33:04 GMT) (full text, mbox, link).
Message #10 received at 628079@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.3.9-5
Severity: normal
Could you please retest?
It works for me
howl:/# cat /etc/timezone
Australia/NSW
howl:/# dpkg-reconfigure tzdata
Current default time zone: 'Australia/Sydney'
Local time is now: Tue Jan 31 23:19:50 EST 2012.
Universal Time is now: Tue Jan 31 12:19:50 UTC 2012.
howl:/# php -i | grep -i Timezone
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
Default timezone => Australia/Sydney
date.timezone => no value => no value
O.
-- System Information:
Debian Release: 6.0.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-common depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii sed 4.2.1-7 The GNU sed stream editor
Versions of packages php5-common recommends:
pn php5-suhosin <none> (no description available)
php5-common suggests no packages.
-- no debconf information
Severity set to 'minor' from 'normal'
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 09 Apr 2012 10:51:03 GMT) (full text, mbox, link).
Added tag(s) moreinfo.
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 09 Apr 2012 10:51:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#628079; Package php5-common.
(Wed, 28 Aug 2013 14:06:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Stepan Golosunov <stepan@golosunov.pp.ru>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Wed, 28 Aug 2013 14:06:08 GMT) (full text, mbox, link).
Message #19 received at 628079@bugs.debian.org (full text, mbox, reply):
Control: found -1 5.4.4-14+deb7u4
Control: tags -1 - moreinfo
On Fri, May 27, 2011 at 09:05:24AM +1000, Craig Small wrote:
> Package: php5-common
> Version: 5.3.6-11
> Severity: normal
>
> Both the apache module and cli PHP show my timezone as
> Antartica/Macquarie. I'm not a penguin and don't live there.
> The rest of the system thinks my timezone is Australia/NSW which is
> correct.
>
> I cannot find anywhere where it is set as it is commented out in the
> php.ini files. If I set the timezone in my php.ini file then everything
> works correctly, but why can't php just use the system timezone like the
> rest of the computer does ok?
I am seeing similar issue with Europe/Samara being confused with
Asia/Samarkand.
# cat /etc/timezone
Europe/Samara
# php -i|grep -i timezone
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
Default timezone => Asia/Samarkand
date.timezone => no value => no value
# printf '<?php\necho date("c"), "\\n";\n'|php
2013-08-28T17:38:31+05:00
# printf '<?php\necho date("c"), "\\n";\n'|TZ=Europe/Samara php
2013-08-28T17:38:36+05:00
# printf '<?php\necho date("c"), "\\n";\n'|TZ=Europe/Moscow php
2013-08-28T16:38:40+04:00
# date
Wed Aug 28 16:38:55 SAMT 2013
# printf '<?php\necho date("c"), "\\n";\n'|php -d date.timezone=Europe/Samara
2013-08-28T16:39:45+04:00
The last 3 variants show correct time.
After looking into use_embedded_timezonedb.patch I think that
timelib_timezone_id_from_abbr is called with "SAMT" as the first agrument.
And according to tzdata sources "SAMT" was used by Asia/Samarkand in
the past. And it even was UTC+4 before 1930. And php's zone_search
picks the first entry from timezonemap.h:
$ grep '"samt".*1440*' php5-5.4.4/ext/date/lib/timezonemap.h
{ "samt", 0, 14400, "Asia/Samarkand" },
{ "samt", 0, 14400, "Europe/Samara" },
Australia/Sydney has the same problem with "EST": it was used by
Antarctica/Macquarie:
$ grep '"est".*36000*' php5-5.4.4/ext/date/lib/timezonemap.h
{ "est", 0, 36000, "Antarctica/Macquarie" },
{ "est", 0, 36000, "Australia/ACT" },
{ "est", 0, 36000, "Australia/Brisbane" },
{ "est", 0, 36000, "Australia/Canberra" },
{ "est", 0, 36000, "Australia/Currie" },
{ "est", 0, 36000, "Australia/Hobart" },
{ "est", 0, 36000, "Australia/LHI" },
{ "est", 0, 36000, "Australia/Lindeman" },
{ "est", 0, 36000, "Australia/Lord_Howe" },
{ "est", 0, 36000, "Australia/Melbourne" },
{ "est", 0, 36000, "Australia/NSW" },
{ "est", 0, 36000, "Australia/Queensland" },
{ "est", 0, 36000, "Australia/Sydney" },
{ "est", 0, 36000, "Australia/Tasmania" },
{ "est", 0, 36000, "Australia/Victoria" },
Marked as found in versions php5/5.4.4-14+deb7u4.
Request was from Stepan Golosunov <stepan@golosunov.pp.ru>
to 628079-submit@bugs.debian.org.
(Wed, 28 Aug 2013 14:06:09 GMT) (full text, mbox, link).
Removed tag(s) moreinfo.
Request was from Stepan Golosunov <stepan@golosunov.pp.ru>
to 628079-submit@bugs.debian.org.
(Wed, 28 Aug 2013 14:06:09 GMT) (full text, mbox, link).
Reply sent
to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility.
(Fri, 13 Jan 2017 13:06:29 GMT) (full text, mbox, link).
Notification sent
to Craig Small <csmall@debian.org>:
Bug acknowledged by developer.
(Fri, 13 Jan 2017 13:06:29 GMT) (full text, mbox, link).
Message #28 received at 628079-done@bugs.debian.org (full text, mbox, reply):
Version: 5.6.26+dfsg-1+rm
Dear submitter,
as the package php5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/841781
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 11 Feb 2017 07:37:05 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 02:06:53 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.