note 60692 added to function.date
| From: | forgotten00 at gmail dot com | Date: | Sat, 14 Jan 2006 01:22:39 +0000 |
| Subject: | note 60692 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101735@lists.php.net to get a copy of this message | ||
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!
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60692
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60692&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60692&report=yes
Search -- http://master.php.net/manage/user-notes.php