Debian Bug report logs -
#803305
php5: timezone "incorrectly" guessed from system
Reported by: Jaap Eldering <jaap@jaapeldering.nl>
Date: Wed, 28 Oct 2015 15:51:06 UTC
Severity: normal
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, jaap@jaapeldering.nl, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#803305; Package src:php5.
(Wed, 28 Oct 2015 15:51:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Jaap Eldering <jaap@jaapeldering.nl>:
New Bug report received and forwarded. Copy sent to jaap@jaapeldering.nl, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Wed, 28 Oct 2015 15:51:10 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: php5
Severity: normal
I ran into a somewhat special-case bug with the Debian patch that guesses the
timezone from the system default.
The system timezone is set to "Europe/London" in /etc/timezone, while php.ini
date.timezone is unset. In this case (after the recent change from DST to normal
time) the PHP function date_default_timezone_get() reports the timezone as UTC.
Although this is equivalent outside daylight saving time, it is not during DST,
which leads to wrong conversions between date/time strings and Unix timestamps.
I would suggest that the timezone be directly read from /etc/timezone before
using php_localtime_r(), which I assume has to infer the timezone from an
offset from UTC only.
Best regards,
Jaap
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-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
Init: systemd (via /run/systemd/system)
Reply sent
to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility.
(Fri, 13 Jan 2017 13:07:32 GMT) (full text, mbox, link).
Notification sent
to Jaap Eldering <jaap@jaapeldering.nl>:
Bug acknowledged by developer.
(Fri, 13 Jan 2017 13:07:32 GMT) (full text, mbox, link).
Message #10 received at 803305-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:25:51 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:21:41 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.