Timezone Class: Dealing with Timezones the Proper Way

Submitted by Adam » Using the Timezone class to automatically deduce the timezone's GMT offset and then modify the date accordingly. I must admit that I was going to write you a simple timezone script and then tell you how easy it was. However, I came across some handy timezone_* functions and things got a little more difficult but a lot more practical. This script will allow you to display the time in any timezone you wish, without any ifs, buts or maybes along the way.
Rating: 3.0/5 | 241 clicks | 0 comments | 0 saves | share | report

Comments on this tutorial

Discuss this tutorial

You must be logged in to comment on a tutorial.