The problem with the first routine I gave you was that, say for example you want to get the time for Australian Central Standard Time, which has a GMT offset of +9.5 hrs, you would think you just have to do $GMTOffset = 9.5;. But this will only work if your server is set to GMT. If it's say, sitting in Sweden, and set to GMT +1hr, then effectively you're going to get a date for GMT +10.5, instead of +9.5. So, we use the strtotime() function, with the gmdate() function as a parameter to get the current timestamp for GMT, then use that in the date() function to create your offset 🙂
Hell, it's not gonna make a huge difference, if your date refers to midnight or something, it might be out, but it probably isn't a MAJOR problem, but it's those little things that make the difference between a hacker, and a GOOD hacker 🙂