I've followed some advice given in this thread http://www.phpbuilder.com/board/showthread.php?threadid=10230634 on setting the TZ environment variable temporarily (just for the request).
- safe_mode is turned on in php.ini as suggested by the PHP manual
- safe_mode_allowed_env_vars includes TZ
However I don't see any change in the time being printed out when I do smtng like
putenv("TZ=Australia/NSW");
$format = "H:i";
$jd = date($format,time());
echo $jd;
ps: I'm in Japan, server time is JST, but need to display time in aus timezone (user session dependent).
Any help appreciated. Thanks