#31957 [Bgs->Csd]: putenv failing with TZ (still a problem)

From: Date: Sun, 13 Feb 2005 17:37:12 +0000
Subject: #31957 [Bgs->Csd]: putenv failing with TZ (still a problem)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73979@lists.php.net to get a copy of this message
ID: 31957 User updated by: freebsd at mwi dot dk Reported By: freebsd at mwi dot dk -Status: Bogus +Status: Closed Bug Type: Date/time related Operating System: FreeBSD 4.10 PHP Version: 4.3.8 New Comment: Sorry - I found all the right names in zoneinfo: locate zoneinfo | more Previous Comments: ------------------------------------------------------------------------ [2005-02-13 18:30:59] sniper@php.net Works fine for me. Are you sure there IS a timezone called US/Central in your system? (these vary from OS to OS..) ------------------------------------------------------------------------ [2005-02-13 18:23:04] freebsd at mwi dot dk Description: ------------ TZ changes will not affect time Same as bug #8609 Reproduce code: --------------- # foo.php putenv("TZ=Greenwich"); echo date("H")."\n"; putenv("TZ=US/Central"); echo date("H")."\n"; putenv("TZ=Greenwich"); echo date("H")."\n"; Expected result: ---------------- Not the same 3 numbers Actual result: -------------- 17 17 17 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31957&edit=1

« previous php.bugs (#73979) next »