date_default_timezone question

creendBruttic

New Member
I wrote a pretty long function that will calculate the differences in timezones across the U.S. relative to the server timezone. I have noticed that by using default_timezone_set() that I can get the same data back that my function calculates. I have chosen not to use the default_timezone_set function because I am afraid that this changes the time on a global level and that if another request somewhere else is occurring within my app, that the wrong time will be used; that is, the time that is being calculated at that moment using the default_timezone_set function.Can someone verify this for me? Can I just use the timezone_set function without having to worry about the possibility of incorrect times being used in other functions? Hope this is clear.
 
Top