Unfortunately I'm not using PHP 5. On the documentation of the date function it has a timezone section which lets you specify the difference from the GMT tome. How can you use that to get the current/local time in a specified timezone, and does it with with daylights savings?
From stackoverflow
-
You can convert times to different timezones by using the PEAR Date package http://pear.php.net/package/Date
Examples here http://pear.php.net/manual/en/package.datetime.date.examples.php
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.