Bug #77582 [NEW]: strftime no longer prints correct timezone
| From: | jflambert at newtrax dot com | Date: | Thu, 07 Feb 2019 22:33:18 +0000 |
| Subject: | Bug #77582 [NEW]: strftime no longer prints correct timezone | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-219411@lists.php.net to get a copy of this message | ||
From: jflambert at newtrax dot com
Operating system: Ubuntu 18.04
PHP version: 7.3.2
Package: Date/time related
Bug Type: Bug
Bug description:strftime no longer prints correct timezone
Description:
------------
The following test script used to work just fine in PHP 7.3.1. Only
after the upgrade to php 7.3.2 did I start getting this issue.
Possibly other date functions are affected. But my unit tests stop
immediately on failure. Also I haven't changed anything to my
environment in months/years. It very much seems to me like a new 7.3.2
issue, and I couldn't see anything in the 7.3.2 log about backwards
incompatible changes.
php --version
PHP 7.3.2-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb 7 2019
18:01:56) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.2-1+ubuntu18.04.1+deb.sury.org+1, Copyright
(c) 1999-2018, by Zend Technologies
with Xdebug v2.7.0rc1, Copyright (c) 2002-2019, by Derick Rethans
Test script:
---------------
php -a
Interactive mode enabled
php > var_dump(ini_get('date.timezone'));
php shell code:1:
string(16) "America/New_York"
php > echo strftime('%F %T %z');
2019-02-07 22:24:27 +0000
php > echo strftime('%Z');
GMT
Expected result:
----------------
php > echo strftime('%F<br />%T %Z');
2019-02-07<br />17:04:54 EST
Actual result:
--------------
Always seems to be GMT
--
Edit bug report at https://bugs.php.net/bug.php?id=77582&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77582&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77582&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77582&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77582&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77582&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77582&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77582&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77582&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77582&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77582&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77582&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77582&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77582&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77582&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77582&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77582&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77582&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77582&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77582&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77582&r=mysqlcfg