note 60692 rejected from function.date by mazzanet
| From: | mazzanet@php.net | Date: | Sat, 14 Jan 2006 08:45:57 +0000 |
| Subject: | note 60692 rejected from function.date by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101740@lists.php.net to get a copy of this message | ||
Note Submitter: forgotten00 at gmail dot com
----
How does one have set their script to take the timezone difference from the machine and time wanted
into account? And will it still work with DST switches?
<?php
if ($_POST['Post'])
{
$Topic=$_POST['Topic'];
$Body=$_POST['Body'];
$Date=date("F d, Y");
$Time=date("g:i A", time()-(60*60*3))." PST"; //Server timezone: -500 Time
wanted: -800
$Author=$Username;
$AuthorIP=$_SERVER['REMOTE_ADDR'];
}
?>
Please send me an email!