View Single Post
  #9 (permalink)  
Old 07-19-2008, 12:15 AM
Gary White
 
Posts: n/a
Diggs:
Default Re: Date formatting according to UTC timezones

On Fri, 18 Jul 2008 22:04:55 +0000 (UTC), "RichardODreamweaver"
<webforumsuser@macromedia.com> wrote:

> Gary - as my server does support it, I'm not sure why I need the if function
>exists code?


It's just a safeguard. If the date_default_timezone_set() function is
supported, it is executed. On the other hand, if you later change
hosts and wind up with a server that does not support it, it won't
generate an error and fail. It will simply use the putenv() function
instead.

Gary
Reply With Quote