|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-01-02 17:58 UTC] derick@php.net
  [2001-01-09 04:08 UTC] sniper@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 15:00:01 2025 UTC | 
I recently found a problem on a php piece of code who looks like: putenv("TZ=$Some_TZ"); // Like "EST5EDT" $val= strftime("%Z"); echo "Timezone = ".$val; It sometimes get the right value, sometimes some "near" garbage values. Not repeateable (at random under apache). it looks like that under standard linux(glibc2), all "time" related function should call "C" function tzset() before first usage. I see in the source that: _php_mktime() is calling tzset() #if HAVE_TZSET the strftime() function need this too (for linux at least) thanks, Xtian.