Hi
I want to have a different timezone in my php Date function (with daylight saving time)
I have seen many solutions on the web which say:
putenv("TZ=US/Eastern");
This function has, however been disabled (maybe it is enabled in the level 3 php, but I'd feel silly asking for php level 3 just for that...
Is there a soft-code way to do it (bearing in mind daylight savings time, I can't just add/subtract hours)?
Thanks in advance
Edit:
Never mind, I found the answer:
Just put this in your php:
date_default_timezone_set('GMT');
or 'GB' for Great Britain's timezone
or whatever country's timezone you want (it adjusts for DST)


LinkBack URL
About LinkBacks
Reply With Quote
