View Single Post
  #7 (permalink)  
Old 07-18-2008, 05:24 PM
Gary White
 
Posts: n/a
Diggs:
Default Re: Date formatting according to UTC timezones

On Fri, 18 Jul 2008 08:24:26 +0200, Michael Fesser <netizen@gmx.de>
wrote:

>You should use date_default_timezone_set() instead:


True if your PHP version is => 5.1. My approach is usually something
along the lines of:

function setTimeZone($z){
if(function_exists('date_default_timezone_set'))
date_default_timezone_set($z);
else
putenv("TZ=$z");
}

Gary
Reply With Quote