Forum Moderators: coopster
While this works great, I am in a different time zone then my server, and I'm getting tired of having to change the times in my head.
I was thinking about subtracting 1 from "g", since I'm behind one hour. However, I realized this doesnt work well for two hours of each day, when its between 1:00:00 am - 1:59:59 am 1:00:00 pm - 1:59:59 pm. It will also get more complicated when dealing with days, months and even the years during transitional times.
Is there a better way of converting times between time zones?
Thanks
Unfortunately, I can't get it to work, nor does there seem to be much documentation on it online (even on PHP's site).
Do I just insert this line somewhere into my code, preferable in the top:
date_default_timezone_set(America/Anchorage);
Or do I treat it differently?
Thanks