Bug #77582 [Opn]: strftime no longer prints correct timezone

From: Date: Thu, 07 Feb 2019 23:02:10 +0000
Subject: Bug #77582 [Opn]: strftime no longer prints correct timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219412@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77582&edit=1 ID: 77582 Updated by: cmb@php.net Reported by: jflambert at newtrax dot com Summary: strftime no longer prints correct timezone Status: Open Type: Bug Package: Date/time related Operating System: Ubuntu 18.04 PHP Version: 7.3.2 Block user comment: N Private report: N New Comment: Works like expected on <https://3v4l.org/TdMW6>. Previous Comments: ------------------------------------------------------------------------ [2019-02-07 22:33:18] jflambert at newtrax dot com 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 this bug report at https://bugs.php.net/bug.php?id=77582&edit=1

« previous php.bugs (#219412) next »