I'm trying to use the putenv() function for timezone manipulation and having some trouble.

The first problem is that the TZ environment variable does not appear to be set at all. Could there be something wrong with my configuration?

The second problem is that is that if I do this:

putenv( 'TZ=PST8PDT' );

then TZ remains set at PST8PDT on subsequent requests even if I comment out putenv(). It stays this way until I restart apache.

Any ideas what I'm doing wrong here? Or is it just windows being....well...windows?

    Write a Reply...