• 0

[php]Time script


Question

Ok - so after sniffing about php.net i came up with this date script which formats the date to GMT; i have a problem that as the server is in the USA the times are wrong in php scripts.

<?PHP

$timestamp=(gmstrftime("%b %d %Y %H:%M:%S",time()));

echo $timestamp;

?>

however.... :) this script doesnt take into account GMT Daylight savings :). How would i add on 1 hour?

thanks./

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.